2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add cover to settings main section.

This commit is contained in:
John Preston
2018-09-05 22:39:35 +03:00
parent f0d092f126
commit a7725f03bb
8 changed files with 59 additions and 18 deletions

View File

@@ -9,16 +9,23 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "settings/settings_common.h"
namespace Window {
class Controller;
} // namespace Window
namespace Settings {
class Main : public Section {
public:
Main(QWidget *parent, not_null<UserData*> self);
Main(
QWidget *parent,
not_null<Window::Controller*> controller,
not_null<UserData*> self);
rpl::producer<Type> sectionShowOther() override;
private:
void setupContent();
void setupContent(not_null<Window::Controller*> controller);
not_null<UserData*> _self;
rpl::event_stream<Type> _showOther;