From 7495dabc15d5a3a2c7a1e81657227f936a59144f Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 30 Jan 2007 19:38:44 +0000 Subject: Improvements for error messages: - increase/decrease size on demand and hide progress bar or space information if required - provide close button TODO: the code is far from being finished (e. g. no queueing of pending error messages, close button looks fugly, ...), but I decided to commit the changes to prevent getting an inconsistent state in combination with other commits... svn path=/trunk/playground/utils/dolphin/; revision=628642 --- src/dolphinview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 90383348d..93cda320b 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -604,6 +604,8 @@ void DolphinView::loadDirectory(const KUrl& url) startDirLister(url); emit urlChanged(url); + + m_statusBar->clear(); } void DolphinView::triggerItem(const QModelIndex& index) @@ -870,7 +872,7 @@ void DolphinView::createView() // delete current view QAbstractItemView* view = itemView(); if (view != 0) { - m_topLayout->remove(view); + m_topLayout->removeWidget(view); view->close(); view->deleteLater(); m_iconsView = 0; -- cgit v1.3