From a5369589e35e59a2cf357d8d4d5918d58205e0e6 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 24 Mar 2016 02:14:09 +0300 Subject: [PATCH] Fix build on Qt 4 --- limereport/lrpreviewreportwindow.cpp | 6 +++--- limereport/lrreportdesignwindow.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/limereport/lrpreviewreportwindow.cpp b/limereport/lrpreviewreportwindow.cpp index 7abea25..0619fde 100644 --- a/limereport/lrpreviewreportwindow.cpp +++ b/limereport/lrpreviewreportwindow.cpp @@ -79,10 +79,10 @@ void PreviewReportWindow::restoreSetting() if (v.isValid()){ restoreGeometry(v.toByteArray()); } else { - QScreen *screen = QApplication::primaryScreen(); + QDesktopWidget *desktop = QApplication::desktop(); - int screenWidth = screen->virtualGeometry().width(); - int screenHeight = screen->virtualGeometry().height(); + int screenWidth = desktop->screenGeometry().width(); + int screenHeight = desktop->screenGeometry().height(); int x = screenWidth*0.1; int y = screenHeight*0.1; diff --git a/limereport/lrreportdesignwindow.cpp b/limereport/lrreportdesignwindow.cpp index 0edf33c..b0ebae7 100644 --- a/limereport/lrreportdesignwindow.cpp +++ b/limereport/lrreportdesignwindow.cpp @@ -602,10 +602,10 @@ void ReportDesignWindow::restoreSetting() if (v.isValid()){ restoreGeometry(v.toByteArray()); } else { - QScreen *screen = QApplication::primaryScreen(); + QDesktopWidget *desktop = QApplication::desktop(); - int screenWidth = screen->virtualGeometry().width(); - int screenHeight = screen->virtualGeometry().height(); + int screenWidth = desktop->screenGeometry().width(); + int screenHeight = desktop->screenGeometry().height(); int x = screenWidth*0.1; int y = screenHeight*0.1;