From 3d7b54b21a47e98d1d02c7d21061a6bd43b8d1c7 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 13 Nov 2009 22:48:07 +0000 Subject: Implemented initialization of value-widgets. This allows e.g. to apply dates like "today", "last week", ... to the date-value-widgets just by specifying a search criterion. svn path=/trunk/KDE/kdebase/apps/; revision=1048771 --- src/dolphinviewcontainer.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/dolphinviewcontainer.cpp') diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index bdeaab258..5639d9bf2 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -284,7 +284,7 @@ void DolphinViewContainer::updateStatusBar() void DolphinViewContainer::initializeProgress() { - if (m_view->url().protocol() == "nepomuksearch") { + if (url().protocol() == "nepomuksearch") { // The Nepomuk IO-slave does not provide any progress information. Give // an immediate hint to the user that a searching is done: m_statusBar->setProgressText(i18nc("@info", "Searching...")); @@ -307,7 +307,13 @@ void DolphinViewContainer::slotDirListerCompleted() m_statusBar->setProgress(100); } - updateStatusBar(); + if ((url().protocol() == "nepomuksearch") && (m_dirLister->items().count() == 0)) { + // The dir lister has been completed on a Nepomuk-URI and no items have been found. Instead + // of showing the default status bar information ("0 items") a more helpful information is given: + m_statusBar->setMessage(i18nc("@info:status", "No items found."), DolphinStatusBar::Information); + } else { + updateStatusBar(); + } QMetaObject::invokeMethod(this, "restoreContentsPos", Qt::QueuedConnection); // Enable the 'File'->'Create New...' menu only if the directory -- cgit v1.3