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