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>
This commit is contained in:
Girish Ramakrishnan 2012-07-07 02:46:24 +05:30 committed by Qt by Nokia
parent b47bded2f3
commit c2b9c0ec89
2 changed files with 3 additions and 3 deletions

View File

@ -51,6 +51,8 @@ QFbWindow::QFbWindow(QWindow *window)
{
static QAtomicInt winIdGenerator(1);
windowId = winIdGenerator.fetchAndAddRelaxed(1);
platformScreen()->addWindow(window);
}
QFbWindow::~QFbWindow()

View File

@ -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