iOS: Get rid of singleton instance accessor in platform plugin
None of the other platform plugins have one, and it's not used anywhere. Change-Id: Id46ab5f75c9819511c3e9d123d0338c3c8799869 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
parent
3020d06fdb
commit
6d36a83b41
@ -52,8 +52,6 @@ public:
|
||||
QIOSIntegration();
|
||||
~QIOSIntegration();
|
||||
|
||||
static QIOSIntegration *instance();
|
||||
|
||||
QPlatformPixmap *createPlatformPixmap(QPlatformPixmap::PixelType type) const;
|
||||
QPlatformWindow *createPlatformWindow(QWindow *window) const;
|
||||
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
|
||||
|
@ -51,18 +51,9 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
static QIOSIntegration *m_instance = 0;
|
||||
|
||||
QIOSIntegration * QIOSIntegration::instance()
|
||||
{
|
||||
return m_instance;
|
||||
}
|
||||
|
||||
QIOSIntegration::QIOSIntegration()
|
||||
:m_fontDb(new QCoreTextFontDatabase)
|
||||
{
|
||||
if (!m_instance)
|
||||
m_instance = this;
|
||||
m_screens << new QIOSScreen(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user