aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-open/main.cpp
diff options
context:
space:
mode:
authorlbartoletti <l.bartoletti@free.fr>2019-10-22 18:33:04 +0200
committerlbartoletti <l.bartoletti@free.fr>2019-10-22 18:33:04 +0200
commit9f756eadc6ef86d602c746189b91b1c87c6d6cc2 (patch)
treef0edf5ceafde3fb4c1d074fe3c153ff3f202b688 /src-qt5/core/lumina-open/main.cpp
parentscreenCount/screenGeometry -> QGuiApplication::screens() (diff)
downloadlumina-9f756eadc6ef86d602c746189b91b1c87c6d6cc2.tar.gz
lumina-9f756eadc6ef86d602c746189b91b1c87c6d6cc2.tar.bz2
lumina-9f756eadc6ef86d602c746189b91b1c87c6d6cc2.zip
lumina/src-qt5/core/lumina-open/main.cpp:75:34: warning: 'screenGeometry' is deprecated: Use QGuiApplication::screenAt()
Diffstat (limited to 'src-qt5/core/lumina-open/main.cpp')
-rw-r--r--src-qt5/core/lumina-open/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-open/main.cpp b/src-qt5/core/lumina-open/main.cpp
index e53181f9..f152d6f7 100644
--- a/src-qt5/core/lumina-open/main.cpp
+++ b/src-qt5/core/lumina-open/main.cpp
@@ -72,7 +72,7 @@ void showOSD(int argc, char **argv, QString message){
if(DEBUG) qDebug() << "Display OSD";
splash.setText(message);
//Make sure it is centered on the current screen
- QPoint center = App.desktop()->screenGeometry(QCursor::pos()).center();
+ QPoint center = App.screenAt(QCursor::pos())->availableGeometry().center();
splash.move(center.x()-(splash.sizeHint().width()/2), center.y()-(splash.sizeHint().height()/2));
splash.show();
//qDebug() << " - show message";
bgstack15