Home
Phabricator
Search
Log In
Files
F8138679
Masterwork From Distant Lands
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Author
davidedmundson
Created
Feb 29 2020, 12:02 AM
Size
799 B
Mime Type
text/plain; charset=utf-8
Engine
blob
Format
Raw Data
Handle
5213335
Attached To
P549 Masterwork From Distant Lands
Masterwork From Distant Lands
View Options
diff --git a/src/widgets/kernel/qtooltip.cpp b/src/widgets/kernel/qtooltip.cpp
index 1ec3612457..d930b12d07 100644
--- a/src/widgets/kernel/qtooltip.cpp
+++ b/src/widgets/kernel/qtooltip.cpp
@@ -402,9 +402,9 @@ void QTipLabel::placeTip(const QPoint &pos, QWidget *w)
#endif //QT_NO_STYLE_STYLESHEET
QPoint p = pos;
- int screenNumber = getTipScreen(pos, w);
- QScreen *screen = QGuiApplication::screens().at(screenNumber);
- if (screen) {
+ QWindow *window = w->windowHandle();
+ if (windowHandle) {
+ screen = window->screen();
const QPlatformScreen *platformScreen = screen->handle();
const QSize cursorSize = QHighDpi::fromNativePixels(platformScreen->cursor()->size(),
platformScreen);
Log In to Comment