diff options
| author | Silarn <jrim@rimpo.org> | 2019-07-03 13:04:27 -0500 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-07-03 13:04:27 -0500 |
| commit | aa9a1fc07fb612547c1d1c5074d669b2dd258af9 (patch) | |
| tree | 3f381e3120349a97f3731d0a1620e78ae1583b5a /src/main.cpp | |
| parent | efec72a85a351f53880bffdba2438f6802d4f9ab (diff) | |
Refactor obsolete methods
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index c6c87a64..b83e581b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -646,8 +646,8 @@ int runApplication(MOApplication &application, SingleInstance &instance, const int monitor = settings.value("window_monitor").toInt(); if (monitor != -1) { - QDesktopWidget* desktop = QApplication::desktop(); - const QPoint center = desktop->availableGeometry(monitor).center(); + QGuiApplication::screens().at(monitor)->geometry().center(); + const QPoint center = QGuiApplication::screens().at(monitor)->geometry().center(); splash.move(center - splash.rect().center()); } } |
