From 21fcfa3348213aa87f0e3aef62ca4720c6d31cb7 Mon Sep 17 00:00:00 2001 From: Robert Xu Date: Thu, 10 Nov 2011 18:04:39 -0500 Subject: initial commit to suse branch: eclipse integration --- opensuse/tdelibs/kfile-beagle.diff | 42 -------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 opensuse/tdelibs/kfile-beagle.diff (limited to 'opensuse/tdelibs/kfile-beagle.diff') diff --git a/opensuse/tdelibs/kfile-beagle.diff b/opensuse/tdelibs/kfile-beagle.diff deleted file mode 100644 index 467e68ed4..000000000 --- a/opensuse/tdelibs/kfile-beagle.diff +++ /dev/null @@ -1,42 +0,0 @@ -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( -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 ) -- cgit v1.2.1