diff --git a/plugins/qpa/screen.cpp b/plugins/qpa/screen.cpp index 95719c8d52..362bab7633 100644 --- a/plugins/qpa/screen.cpp +++ b/plugins/qpa/screen.cpp @@ -64,5 +64,10 @@ qreal Screen::devicePixelRatio() const return m_screen != -1 ? screens()->scale(m_screen) : 1.0; } +QString Screen::name() const +{ + return m_screen != -1 ? screens()->name(m_screen) : QString(); +} + } } diff --git a/plugins/qpa/screen.h b/plugins/qpa/screen.h index c21ce5dd4b..4a206aa7bc 100644 --- a/plugins/qpa/screen.h +++ b/plugins/qpa/screen.h @@ -24,6 +24,7 @@ public: explicit Screen(int screen); ~Screen() override; + QString name() const override; QRect geometry() const override; int depth() const override; QImage::Format format() const override;