From c2b9c0ec89b3b4cfe1ace96bd8a54bdf765c85ad Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 7 Jul 2012 02:46:24 +0530 Subject: 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 Reviewed-by: Thomas Senyk Reviewed-by: Girish Ramakrishnan --- src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/plugins/platforms') 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 -- cgit v1.2.3