Remove static from OSDPretty::current_screen

This commit is contained in:
Jonas Kvinge 2021-06-22 14:17:24 +02:00
parent b071ecb45e
commit f66aca2164
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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