From f66aca21649a9b4027d0539f567ea91fe04c3675 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 22 Jun 2021 14:17:24 +0200 Subject: [PATCH] Remove static from OSDPretty::current_screen --- src/osd/osdpretty.cpp | 2 +- src/osd/osdpretty.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/osdpretty.cpp b/src/osd/osdpretty.cpp index 6f3af067d..0994240ed 100644 --- a/src/osd/osdpretty.cpp +++ b/src/osd/osdpretty.cpp @@ -528,7 +528,7 @@ void OSDPretty::mouseReleaseEvent(QMouseEvent *) { } -QScreen *OSDPretty::current_screen(const QPoint pos) { +QScreen *OSDPretty::current_screen(const QPoint pos) const { QScreen *screen(nullptr); #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) diff --git a/src/osd/osdpretty.h b/src/osd/osdpretty.h index b4538152e..d4160553c 100644 --- a/src/osd/osdpretty.h +++ b/src/osd/osdpretty.h @@ -97,7 +97,7 @@ class OSDPretty : public QWidget { // When the user has been moving the popup, use these to get its current position and screen. // Note that these return invalid values if the popup is hidden. QScreen *current_screen() const; - static QScreen *current_screen(const QPoint pos); + QScreen *current_screen(const QPoint pos) const; QPoint current_pos() const; // QWidget