|
From: <cn...@us...> - 2024-07-04 22:21:14
|
Revision: 1480
http://sourceforge.net/p/seq/svn/1480
Author: cn187
Date: 2024-07-04 22:21:12 +0000 (Thu, 04 Jul 2024)
Log Message:
-----------
[qt6] Multi-display fixes
Modified Paths:
--------------
showeq/branches/cn187_devel/src/map.cpp
Modified: showeq/branches/cn187_devel/src/map.cpp
===================================================================
--- showeq/branches/cn187_devel/src/map.cpp 2024-06-29 19:03:37 UTC (rev 1479)
+++ showeq/branches/cn187_devel/src/map.cpp 2024-07-04 22:21:12 UTC (rev 1480)
@@ -238,7 +238,7 @@
// get info about the widget and its environment
#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0))
- QRect availGeom = window()->windowHandle()->screen()->availableGeometry();
+ QRect availGeom = ((QLabel*)parent())->window()->windowHandle()->screen()->availableGeometry();
int sw = availGeom.width();
int sh = availGeom.height();
int sx = availGeom.x();
@@ -262,9 +262,9 @@
if ( y+h > sh )
y = sh - h;
if ( x < sx )
- x = sx;
+ x = sx + x;
if ( y < sy )
- y = sy;
+ y = sy + y;
move( x, y );
// show the widget
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|