Remove static from OSDPretty::current_screen
This commit is contained in:
parent
b071ecb45e
commit
f66aca2164
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user