forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user