diff options
author | lbartoletti <l.bartoletti@free.fr> | 2019-10-22 20:46:40 +0200 |
---|---|---|
committer | lbartoletti <l.bartoletti@free.fr> | 2019-10-22 20:46:40 +0200 |
commit | 59e6b9b87d67adf79293d368dfaaa5097e2dceff (patch) | |
tree | 3fcec1167a5dd2abbcb07e342dcab083f810e960 /src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp | |
parent | screenGeometry/screenCount -> QGuiApplication::screens(). LSession.cpp (diff) | |
download | lumina-59e6b9b87d67adf79293d368dfaaa5097e2dceff.tar.gz lumina-59e6b9b87d67adf79293d368dfaaa5097e2dceff.tar.bz2 lumina-59e6b9b87d67adf79293d368dfaaa5097e2dceff.zip |
screenGeometry/screenCount -> QGuiApplication::screens(). another round
Diffstat (limited to 'src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp')
-rw-r--r-- | src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp b/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp index 7dc9f8f8..639e3f47 100644 --- a/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp +++ b/src-qt5/core-utils/lumina-config/pages/page_wallpaper.cpp @@ -73,7 +73,7 @@ void page_wallpaper::LoadSettings(int screennum){ else{ ui->radio_desk_single->setChecked(true); } ui->spin_desk_min->setValue( settings.value(DPrefix+"background/minutesToChange", 5).toInt() ); desktimechanged(); //ensure the display gets updated (in case the radio selection did not change); - QRect geom = QApplication::desktop()->screenGeometry(cScreen); + QRect geom = QGuiApplication::screens().at(cScreen)->availableGeometry(); ui->label_desk_res->setText( tr("Screen Resolution:")+"\n"+QString::number(geom.width())+"x"+QString::number(geom.height()) ); int tmp = ui->combo_desk_layout->findData(settings.value(DPrefix+"background/format","stretch")); if(tmp>=0){ ui->combo_desk_layout->setCurrentIndex(tmp); } |