summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tdelibs.old/kfile-beagle.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2012-03-31 14:28:06 -0400
committerRobert Xu <robxu9@gmail.com>2012-03-31 14:28:06 -0400
commit59dd46ef985a719579132efa6a9aa49bfeeae112 (patch)
tree93d8c721ff263e67aaf59e364496862872ded8fb /opensuse/core/tdelibs.old/kfile-beagle.diff
parentc141f0bc29b6e2eeda5ca08a043d26546a1427f9 (diff)
downloadtde-packaging-59dd46ef985a719579132efa6a9aa49bfeeae112.tar.gz
tde-packaging-59dd46ef985a719579132efa6a9aa49bfeeae112.zip
better late than never, hm...
Diffstat (limited to 'opensuse/core/tdelibs.old/kfile-beagle.diff')
-rw-r--r--opensuse/core/tdelibs.old/kfile-beagle.diff42
1 files changed, 42 insertions, 0 deletions
diff --git a/opensuse/core/tdelibs.old/kfile-beagle.diff b/opensuse/core/tdelibs.old/kfile-beagle.diff
new file mode 100644
index 000000000..467e68ed4
--- /dev/null
+++ b/opensuse/core/tdelibs.old/kfile-beagle.diff
@@ -0,0 +1,42 @@
+Index: kio/kfile/kurlbar.cpp
+===================================================================
+--- kio/kfile/kurlbar.cpp.orig
++++ kio/kfile/kurlbar.cpp
+@@ -605,8 +605,19 @@ void KURLBar::readItem( int i, KConfig *
+ if ( !url.isValid() || !KProtocolInfo::isKnownProtocol( url ))
+ return; // nothing we could do.
+
++ QString description = config->readEntry( QString("Description_") + number );
++
++ if (description.isEmpty() && url.protocol()=="beagle") {
++ KIO::UDSEntry uds;
++ const KURL kurl("beagle:?beagled-status");
++ if (!KIO::NetAccess::stat(kurl, uds))
++ return;
++
++ description = i18n("Desktop Search");
++ }
++
+ insertItem( url,
+- config->readEntry( QString("Description_") + number ),
++ description,
+ applicationLocal,
+ config->readEntry( QString("Icon_") + number ),
+ static_cast<KIcon::Group>(
+Index: kio/kfile/kfiledialog.cpp
+===================================================================
+--- kio/kfile/kfiledialog.cpp.orig
++++ kio/kfile/kfiledialog.cpp
+@@ -1165,6 +1165,12 @@ void KFileDialog::urlEntered(const KURL&
+ d->pathCombo->setURL( url );
+ }
+
++ if (url.protocol()=="beagle" && url.path()=="/") {
++ d->pathCombo->setEditText("beagle:/<"+i18n("search term")+">");
++ d->pathCombo->lineEdit()->setSelection(8,255);
++ d->pathCombo->setFocus();
++ }
++
+ locationEdit->blockSignals( true );
+ locationEdit->setCurrentItem( 0 );
+ if ( d->keepLocation )