aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils
diff options
context:
space:
mode:
authorlbartoletti <l.bartoletti@free.fr>2019-10-22 20:50:10 +0200
committerlbartoletti <l.bartoletti@free.fr>2019-10-22 20:50:10 +0200
commitba6883f0e256a583c670df939987fcc4907aa894 (patch)
treeff7c142bc870b1ed4fd48cc51e1b791f5ef27063 /src-qt5/desktop-utils
parentscreenGeometry/screenCount -> QGuiApplication::screens(). another round (diff)
downloadlumina-ba6883f0e256a583c670df939987fcc4907aa894.tar.gz
lumina-ba6883f0e256a583c670df939987fcc4907aa894.tar.bz2
lumina-ba6883f0e256a583c670df939987fcc4907aa894.zip
fix lumina-screenshot/MainUI.cpp
Diffstat (limited to 'src-qt5/desktop-utils')
-rw-r--r--src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
index 09e05892..5e859f73 100644
--- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
@@ -22,9 +22,9 @@ MainUI::MainUI()
IMG = new ImageEditor(this);
ui->scrollArea->setWidget(IMG);
areaOverlay = 0;
- ui->label_zoom_percent->setMinimumWidth( ui->label_zoom_percent->fontMetrics().width("200%") );
+ ui->label_zoom_percent->setMinimumWidth( ui->label_zoom_percent->fontMetrics().horizontalAdvance("200%") );
setupIcons();
- ui->spin_monitor->setMaximum(QApplication::desktop()->screenCount());
+ ui->spin_monitor->setMaximum(QGuiApplication::screens().count());
if(ui->spin_monitor->maximum()<2){
ui->spin_monitor->setEnabled(false);
ui->radio_monitor->setEnabled(false);
bgstack15