Commit 90dce019 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

qpa: Expose output names to QScreen

It can be useful for things such as effects.
parent 870b4110
......@@ -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();
}
}
}
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment