tdesktop/Telegram/SourceFiles/old_settings/settings_widget.h

36 lines
703 B
C
Raw Normal View History

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
2018-09-02 14:23:52 +00:00
#include "old_settings/settings_layer.h"
2018-09-02 14:23:52 +00:00
namespace OldSettings {
class InnerWidget;
class Widget : public Layer, private base::Subscriber {
public:
Widget(QWidget*);
void refreshLang();
void scrollToUpdateRow();
void parentResized() override;
protected:
void keyPressEvent(QKeyEvent *e) override;
private:
void resizeUsingInnerHeight(int newWidth, int innerHeight) override;
QPointer<InnerWidget> _inner;
};
} // namespace Settings