mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-01-11 12:28:09 +03:00
Fix build on Qt 4
This commit is contained in:
parent
9ad28f1aa6
commit
a5369589e3
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user