mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
3d4e6938f5
commit
12c6facfce
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue