mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-30 19:19:56 +03:00
Multiscreen initial size has been fixed
This commit is contained in:
@@ -79,10 +79,10 @@ void PreviewReportWindow::restoreSetting()
|
|||||||
if (v.isValid()){
|
if (v.isValid()){
|
||||||
restoreGeometry(v.toByteArray());
|
restoreGeometry(v.toByteArray());
|
||||||
} else {
|
} else {
|
||||||
QDesktopWidget *desktop = QApplication::desktop();
|
QScreen *screen = QApplication::primaryScreen();
|
||||||
|
|
||||||
int screenWidth = desktop->width();
|
int screenWidth = screen->virtualGeometry().width();
|
||||||
int screenHeight = desktop->height();
|
int screenHeight = screen->virtualGeometry().height();
|
||||||
|
|
||||||
int x = screenWidth*0.1;
|
int x = screenWidth*0.1;
|
||||||
int y = screenHeight*0.1;
|
int y = screenHeight*0.1;
|
||||||
|
@@ -602,10 +602,10 @@ void ReportDesignWindow::restoreSetting()
|
|||||||
if (v.isValid()){
|
if (v.isValid()){
|
||||||
restoreGeometry(v.toByteArray());
|
restoreGeometry(v.toByteArray());
|
||||||
} else {
|
} else {
|
||||||
QDesktopWidget *desktop = QApplication::desktop();
|
QScreen *screen = QApplication::primaryScreen();
|
||||||
|
|
||||||
int screenWidth = desktop->width();
|
int screenWidth = screen->virtualGeometry().width();
|
||||||
int screenHeight = desktop->height();
|
int screenHeight = screen->virtualGeometry().height();
|
||||||
|
|
||||||
int x = screenWidth*0.1;
|
int x = screenWidth*0.1;
|
||||||
int y = screenHeight*0.1;
|
int y = screenHeight*0.1;
|
||||||
|
Reference in New Issue
Block a user