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()){
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;

View File

@ -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;