iOS: Add screen like other platform plugins
We may add support for external displays at a later point, but for now we follow the same pattern as the other platform plugins. Either way we should call screenAdded() to let the platform integration know about the screen. Change-Id: Id01785a5262df0180caf957c7de8ecbbf169f233 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
parent
6d36a83b41
commit
14e93f7e8e
@ -56,15 +56,13 @@ public:
|
||||
QPlatformWindow *createPlatformWindow(QWindow *window) const;
|
||||
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
|
||||
|
||||
QList<QPlatformScreen *> screens() const;
|
||||
|
||||
QPlatformFontDatabase *fontDatabase() const;
|
||||
|
||||
QAbstractEventDispatcher *guiThreadEventDispatcher() const;
|
||||
|
||||
private:
|
||||
QList<QPlatformScreen *> m_screens;
|
||||
QPlatformFontDatabase *m_fontDb;
|
||||
QPlatformScreen *m_screen;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -52,9 +52,9 @@
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
QIOSIntegration::QIOSIntegration()
|
||||
:m_fontDb(new QCoreTextFontDatabase)
|
||||
:m_fontDb(new QCoreTextFontDatabase), m_screen(new QIOSScreen(0))
|
||||
{
|
||||
m_screens << new QIOSScreen(0);
|
||||
screenAdded(m_screen);
|
||||
}
|
||||
|
||||
QIOSIntegration::~QIOSIntegration()
|
||||
@ -74,11 +74,6 @@ QPlatformWindow *QIOSIntegration::createPlatformWindow(QWindow *window) const
|
||||
return new QIOSWindow(window);
|
||||
}
|
||||
|
||||
QList<QPlatformScreen *> QIOSIntegration::screens() const
|
||||
{
|
||||
return m_screens;
|
||||
}
|
||||
|
||||
QPlatformBackingStore *QIOSIntegration::createPlatformBackingStore(QWindow *window) const
|
||||
{
|
||||
return new QIOSBackingStore(window);
|
||||
|
Loading…
Reference in New Issue
Block a user