0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-25 23:51:03 +03:00

Fix build on Qt 4

This commit is contained in:
Arin Alexander 2016-03-24 02:14:09 +03:00
parent 9ad28f1aa6
commit a5369589e3
2 changed files with 6 additions and 6 deletions

View File

@ -79,10 +79,10 @@ void PreviewReportWindow::restoreSetting()
if (v.isValid()){ if (v.isValid()){
restoreGeometry(v.toByteArray()); restoreGeometry(v.toByteArray());
} else { } else {
QScreen *screen = QApplication::primaryScreen(); QDesktopWidget *desktop = QApplication::desktop();
int screenWidth = screen->virtualGeometry().width(); int screenWidth = desktop->screenGeometry().width();
int screenHeight = screen->virtualGeometry().height(); int screenHeight = desktop->screenGeometry().height();
int x = screenWidth*0.1; int x = screenWidth*0.1;
int y = screenHeight*0.1; int y = screenHeight*0.1;

View File

@ -602,10 +602,10 @@ void ReportDesignWindow::restoreSetting()
if (v.isValid()){ if (v.isValid()){
restoreGeometry(v.toByteArray()); restoreGeometry(v.toByteArray());
} else { } else {
QScreen *screen = QApplication::primaryScreen(); QDesktopWidget *desktop = QApplication::desktop();
int screenWidth = screen->virtualGeometry().width(); int screenWidth = desktop->screenGeometry().width();
int screenHeight = screen->virtualGeometry().height(); int screenHeight = desktop->screenGeometry().height();
int x = screenWidth*0.1; int x = screenWidth*0.1;
int y = screenHeight*0.1; int y = screenHeight*0.1;