Axivion: Take vertical position into account too

Amends b265219e9b.

Task-number: QTCREATORBUG-32506
Change-Id: I4901848476b991f03302721d3d826fa1dddb6ec2
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2025-02-18 09:56:32 +01:00
parent 890c99d739
commit f3c2cfdaee

View File

@@ -48,7 +48,8 @@ static QPoint globalPosOnScreen(const QPoint &orig, const QSize &size)
qscreen = QGuiApplication::primaryScreen(); qscreen = QGuiApplication::primaryScreen();
const QRect screen = qscreen->availableGeometry(); const QRect screen = qscreen->availableGeometry();
return QPoint(std::max(screen.x(), orig.x() - size.width()), orig.y() - size.height()); return QPoint(std::max(screen.x(), orig.x() - size.width()),
std::max(screen.y(), orig.y() - size.height()));
} }
class FilterPopupWidget : public QFrame class FilterPopupWidget : public QFrame