|
From: <cn...@us...> - 2023-07-28 03:40:08
|
Revision: 1410
http://sourceforge.net/p/seq/svn/1410
Author: cn187
Date: 2023-07-28 03:40:05 +0000 (Fri, 28 Jul 2023)
Log Message:
-----------
[qt6] Fix misc issues with multi-display systems.
Modified Paths:
--------------
showeq/branches/cn187_devel/src/interface.cpp
showeq/branches/cn187_devel/src/map.cpp
Modified: showeq/branches/cn187_devel/src/interface.cpp
===================================================================
--- showeq/branches/cn187_devel/src/interface.cpp 2023-07-20 23:11:16 UTC (rev 1409)
+++ showeq/branches/cn187_devel/src/interface.cpp 2023-07-28 03:40:05 UTC (rev 1410)
@@ -2512,7 +2512,7 @@
// work around QTBUG-46620
if (isMaximized())
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
- setGeometry(QApplication::primaryScreen()->availableGeometry());
+ setGeometry(window()->windowHandle()->screen()->availableGeometry());
#else
setGeometry(QApplication::desktop()->availableGeometry(this));
#endif
Modified: showeq/branches/cn187_devel/src/map.cpp
===================================================================
--- showeq/branches/cn187_devel/src/map.cpp 2023-07-20 23:11:16 UTC (rev 1409)
+++ showeq/branches/cn187_devel/src/map.cpp 2023-07-28 03:40:05 UTC (rev 1410)
@@ -234,7 +234,7 @@
// get info about the widget and its environment
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
- QRect availGeom = QApplication::primaryScreen()->availableGeometry();
+ QRect availGeom = window()->windowHandle()->screen()->availableGeometry();
int sw = availGeom.width();
int sh = availGeom.height();
int sx = availGeom.x();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|