┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-11-13 22:48:07 +0000
committerPeter Penz <[email protected]>2009-11-13 22:48:07 +0000
commit3d7b54b21a47e98d1d02c7d21061a6bd43b8d1c7 (patch)
tree24a1db2c4b375d6f4d3ecc4ef2a4de6506374134 /src/dolphinviewcontainer.cpp
parentbd30bb6ca98374b37db20d14a41542c21acdd5e0 (diff)
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
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
-rw-r--r--src/dolphinviewcontainer.cpp10
1 files changed, 8 insertions, 2 deletions
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