2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Move standard buttons to lib_ui.

This commit is contained in:
John Preston
2019-09-13 19:45:48 +03:00
parent a16c6ca41a
commit c057f28425
45 changed files with 330 additions and 150 deletions

View File

@@ -20,7 +20,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "storage/localstorage.h"
#include "support/support_templates.h"
#include "settings/settings_common.h"
#include "core/qt_signal_producer.h"
#include "base/qt_signal_producer.h"
#include "boxes/about_box.h"
#include "boxes/peer_list_controllers.h"
#include "calls/calls_box_controller.h"
@@ -469,7 +469,7 @@ void MainMenu::initResetScaleButton() {
rpl::single(
handle->screen()
) | rpl::then(
Core::QtSignalProducer(handle, &QWindow::screenChanged)
base::qt_signal_producer(handle, &QWindow::screenChanged)
) | rpl::filter([](QScreen *screen) {
return screen != nullptr;
}) | rpl::map([](QScreen * screen) {
@@ -477,9 +477,9 @@ void MainMenu::initResetScaleButton() {
screen->availableGeometry()
) | rpl::then(
#ifdef OS_MAC_OLD
Core::QtSignalProducer(screen, &QScreen::virtualGeometryChanged)
base::qt_signal_producer(screen, &QScreen::virtualGeometryChanged)
#else // OS_MAC_OLD
Core::QtSignalProducer(screen, &QScreen::availableGeometryChanged)
base::qt_signal_producer(screen, &QScreen::availableGeometryChanged)
#endif // OS_MAC_OLD
);
}) | rpl::flatten_latest(