2016-08-16 19:53:10 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2016-08-16 19:53:10 +03:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-08-16 19:53:10 +03:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-02-03 23:07:26 +03:00
|
|
|
#include "settings/settings_layer.h"
|
2016-10-12 22:34:25 +03:00
|
|
|
|
2016-08-16 19:53:10 +03:00
|
|
|
namespace Settings {
|
|
|
|
|
2016-08-17 18:14:08 +03:00
|
|
|
class InnerWidget;
|
|
|
|
|
2017-04-18 20:37:14 +03:00
|
|
|
class Widget : public Layer, private base::Subscriber {
|
2016-08-17 18:14:08 +03:00
|
|
|
public:
|
2017-02-03 23:07:26 +03:00
|
|
|
Widget(QWidget*);
|
2016-08-17 18:14:08 +03:00
|
|
|
|
2017-04-18 20:37:14 +03:00
|
|
|
void refreshLang();
|
2018-04-18 19:42:02 +04:00
|
|
|
void scrollToUpdateRow();
|
2017-04-18 20:37:14 +03:00
|
|
|
|
2017-02-03 23:07:26 +03:00
|
|
|
void parentResized() override;
|
2016-08-17 18:14:08 +03:00
|
|
|
|
|
|
|
protected:
|
2016-08-27 11:52:05 -06:00
|
|
|
void keyPressEvent(QKeyEvent *e) override;
|
2016-08-17 18:14:08 +03:00
|
|
|
|
|
|
|
private:
|
2017-02-03 23:07:26 +03:00
|
|
|
void resizeUsingInnerHeight(int newWidth, int innerHeight) override;
|
2016-08-26 22:49:18 -06:00
|
|
|
|
2016-12-13 20:07:56 +03:00
|
|
|
QPointer<InnerWidget> _inner;
|
2016-08-17 18:14:08 +03:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2016-08-16 19:53:10 +03:00
|
|
|
} // namespace Settings
|