mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 08:34:38 +03:00
Multiscreen initial size has been fixed
This commit is contained in:
parent
7e78790123
commit
9ad28f1aa6
@ -79,10 +79,10 @@ void PreviewReportWindow::restoreSetting()
|
||||
if (v.isValid()){
|
||||
restoreGeometry(v.toByteArray());
|
||||
} else {
|
||||
QDesktopWidget *desktop = QApplication::desktop();
|
||||
QScreen *screen = QApplication::primaryScreen();
|
||||
|
||||
int screenWidth = desktop->width();
|
||||
int screenHeight = desktop->height();
|
||||
int screenWidth = screen->virtualGeometry().width();
|
||||
int screenHeight = screen->virtualGeometry().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 {
|
||||
QDesktopWidget *desktop = QApplication::desktop();
|
||||
QScreen *screen = QApplication::primaryScreen();
|
||||
|
||||
int screenWidth = desktop->width();
|
||||
int screenHeight = desktop->height();
|
||||
int screenWidth = screen->virtualGeometry().width();
|
||||
int screenHeight = screen->virtualGeometry().height();
|
||||
|
||||
int x = screenWidth*0.1;
|
||||
int y = screenHeight*0.1;
|
||||
|
Loading…
Reference in New Issue
Block a user