Remove static from OSDPretty::current_screen
This commit is contained in:
@@ -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);
|
QScreen *screen(nullptr);
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||||
|
|||||||
@@ -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.
|
// 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.
|
// Note that these return invalid values if the popup is hidden.
|
||||||
QScreen *current_screen() const;
|
QScreen *current_screen() const;
|
||||||
static QScreen *current_screen(const QPoint pos);
|
QScreen *current_screen(const QPoint pos) const;
|
||||||
QPoint current_pos() const;
|
QPoint current_pos() const;
|
||||||
|
|
||||||
// QWidget
|
// QWidget
|
||||||
|
|||||||
Reference in New Issue
Block a user