Fix flicker when resizing the central view area in Dolphin. Only applicable with Qt 4.4 with alien widgets enabled. Any widgets passed to KDirLister::setMainWindow() become native widgets because of a call to QWidget::winId() inside KIO. This fix passes the top level Dolphin window to setMainWindow() (which is already a native window) instead of the item view widget.

svn path=/trunk/KDE/kdebase/apps/; revision=775396
This commit is contained in:
Robert Knight 2008-02-15 18:18:21 +00:00
parent 3d4e6938f5
commit 12c6facfce
3 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ DolphinColumnWidget::DolphinColumnWidget(QWidget* parent,
//m_dirLister = new DolphinDirLister(); TODO
m_dirLister = new KDirLister();
m_dirLister->setAutoUpdate(true);
m_dirLister->setMainWindow(this);
m_dirLister->setMainWindow(topLevelWidget());
m_dirLister->setDelayedMimeTypes(true);
const bool showHiddenFiles = m_view->m_controller->dolphinView()->showHiddenFiles();
m_dirLister->setShowingDotFiles(showHiddenFiles);

View file

@ -87,7 +87,7 @@ DolphinViewContainer::DolphinViewContainer(DolphinMainWindow* mainWindow,
m_dirLister = new DolphinDirLister();
m_dirLister->setAutoUpdate(true);
m_dirLister->setMainWindow(this);
m_dirLister->setMainWindow(topLevelWidget());
m_dirLister->setDelayedMimeTypes(true);
m_dolphinModel = new DolphinModel(this);

View file

@ -90,7 +90,7 @@ void TreeViewSidebarPage::showEvent(QShowEvent* event)
m_dirLister = new KDirLister();
m_dirLister->setDirOnlyMode(true);
m_dirLister->setAutoUpdate(true);
m_dirLister->setMainWindow(this);
m_dirLister->setMainWindow(topLevelWidget());
m_dirLister->setDelayedMimeTypes(true);
m_dirLister->setAutoErrorHandlingEnabled(false, this);