aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/BootSplash.cpp
diff options
context:
space:
mode:
authorlbartoletti <l.bartoletti@free.fr>2019-10-22 20:46:40 +0200
committerlbartoletti <l.bartoletti@free.fr>2019-10-22 20:46:40 +0200
commit59e6b9b87d67adf79293d368dfaaa5097e2dceff (patch)
tree3fcec1167a5dd2abbcb07e342dcab083f810e960 /src-qt5/core/lumina-desktop/BootSplash.cpp
parentscreenGeometry/screenCount -> QGuiApplication::screens(). LSession.cpp (diff)
downloadlumina-59e6b9b87d67adf79293d368dfaaa5097e2dceff.tar.gz
lumina-59e6b9b87d67adf79293d368dfaaa5097e2dceff.tar.bz2
lumina-59e6b9b87d67adf79293d368dfaaa5097e2dceff.zip
screenGeometry/screenCount -> QGuiApplication::screens(). another round
Diffstat (limited to 'src-qt5/core/lumina-desktop/BootSplash.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/BootSplash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/BootSplash.cpp b/src-qt5/core/lumina-desktop/BootSplash.cpp
index cdf1a3c2..f3befeaf 100644
--- a/src-qt5/core/lumina-desktop/BootSplash.cpp
+++ b/src-qt5/core/lumina-desktop/BootSplash.cpp
@@ -11,7 +11,7 @@ BootSplash::BootSplash() : QWidget(0, Qt::SplashScreen | Qt::X11BypassWindowMana
this->setMinimumWidth( this->minimumHeight() * 1.5);
this->setObjectName("LuminaBootSplash"); //for theme styling
//Center the window on the primary screen
- QPoint ctr = QApplication::desktop()->screenGeometry().center();
+ QPoint ctr = QGuiApplication::primaryScreen()->geometry().center();
this->move( ctr.x()-(this->width()/2), ctr.y()-(this->height()/2) );
generateTipOfTheDay();
ui->label_version->setText( QString(tr("Version %1")).arg(LDesktopUtils::LuminaDesktopVersion()) );
bgstack15