MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / MainWindow

Method MainWindow

Telegram/SourceFiles/mainwindow.cpp:86–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 = "auto-scroll-inactive-chat";
85
86MainWindow::MainWindow(not_null<Window::Controller*> controller)
87: Platform::MainWindow(controller) {
88 resize(st::windowDefaultWidth, st::windowDefaultHeight);
89
90 setLocale(QLocale(QLocale::English, QLocale::UnitedStates));
91
92 using Window::Theme::BackgroundUpdate;
93 Window::Theme::Background()->updates(
94 ) | rpl::on_next([=](const BackgroundUpdate &data) {
95 themeUpdated(data);
96 }, lifetime());
97
98 Core::App().passcodeLockChanges(
99 ) | rpl::on_next([=] {
100 updateGlobalMenu();
101 }, lifetime());
102
103 Ui::Emoji::Updated(
104 ) | rpl::on_next([=] {
105 Ui::ForceFullRepaint(this);
106 }, lifetime());
107
108 setAttribute(Qt::WA_OpaquePaintEvent);
109}
110
111void MainWindow::initHook() {
112 Platform::MainWindow::initHook();

Callers

nothing calls this directly

Calls 5

AppClass · 0.85
passcodeLockChangesMethod · 0.80
BackgroundFunction · 0.50
UpdatedFunction · 0.50
updatesMethod · 0.45

Tested by

no test coverage detected