eglfs: Use description property as screen name

Change-Id: I2322ffcb28c646b289ee718b9c3946bc0a44bd3c
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Rainer Keller 2017-04-10 09:02:22 +02:00
parent 2d504c6709
commit f9aaf0e6d5
2 changed files with 6 additions and 0 deletions

View File

@ -110,6 +110,11 @@ uint QEglFSEmulatorScreen::id() const
return m_id; return m_id;
} }
QString QEglFSEmulatorScreen::name() const
{
return m_description;
}
void QEglFSEmulatorScreen::initFromJsonObject(const QJsonObject &description) void QEglFSEmulatorScreen::initFromJsonObject(const QJsonObject &description)
{ {
QJsonValue value; QJsonValue value;

View File

@ -62,6 +62,7 @@ public:
qreal refreshRate() const override; qreal refreshRate() const override;
Qt::ScreenOrientation nativeOrientation() const override; Qt::ScreenOrientation nativeOrientation() const override;
Qt::ScreenOrientation orientation() const override; Qt::ScreenOrientation orientation() const override;
QString name() const override;
uint id() const; uint id() const;