diff options
author | Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> | 2012-07-07 02:46:24 +0530 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-11 12:44:38 +0200 |
commit | c2b9c0ec89b3b4cfe1ace96bd8a54bdf765c85ad (patch) | |
tree | 0cc8c50a56f81398cacbfd604823b454624c6a15 /src/plugins/platforms/linuxfb | |
parent | b47bded2f35c584cb89e2c0e6167e549f0426728 (diff) | |
download | qtbase-c2b9c0ec89b3b4cfe1ace96bd8a54bdf765c85ad.tar.gz |
linuxfb: let the window register itself with the screen
This moves the addWindow call to the platformsupport code.
Change-Id: Icf9175ae86ad880248036362e9c5f40124744272
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Thomas Senyk <thomas.senyk@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/plugins/platforms/linuxfb')
-rw-r--r-- | src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp index 057839a96d..5ad34f9795 100644 --- a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp +++ b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp @@ -89,9 +89,7 @@ QPlatformBackingStore *QLinuxFbIntegration::createPlatformBackingStore(QWindow * QPlatformWindow *QLinuxFbIntegration::createPlatformWindow(QWindow *window) const { - QFbWindow *w = new QFbWindow(window); - m_primaryScreen->addWindow(w); - return w; + return new QFbWindow(window); } QAbstractEventDispatcher *QLinuxFbIntegration::guiThreadEventDispatcher() const |