[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: PATCH to make minicli use all KURIFilterPlugins
From: Neil Stevens <neil () qualityassistant ! com>
Date: 2002-10-26 5:49:02
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The attached patch makes the KDesktop minicli use all installed
KURIFilterPlugins when and only when the user executes the command.
Minicli will still use only the two hard-coded filters for the
letter-by-letter filtering.
This is useful because people might write their own plugins (like the
apidocs filter I just wrote), and for something like "apidocs:KURL" it
feels a lot faster to use the minicli than to open a konqueror window.
OK to apply?
- --
Neil Stevens - neil@qualityassistant.com
"The nearest I can make it out, 'Love your Enemies' means, 'Hate your
Friends'." - Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9uizUf7mnligQOmERApSEAKCUGTUK+Ab4CEHZpBna3JPTt2rfngCeIIt9
THNPiuU9XA7i3KGRzhYMnlA=
=65Qt
-----END PGP SIGNATURE-----
["minicli-use-all-filters" (text/x-diff)]
Index: minicli.cpp
===================================================================
RCS file: /home/kde/kdebase/kdesktop/minicli.cpp,v
retrieving revision 1.134
diff -u -r1.134 minicli.cpp
--- minicli.cpp 2002/08/21 00:24:12 1.134
+++ minicli.cpp 2002/10/26 05:42:35
@@ -537,11 +537,16 @@
else
{
m_filterData->setData( cmd );
- QStringList filters;
- filters << "kurisearchfilter" << "kshorturifilter";
- if( final )
- filters << "localdomainurifilter";
- KURIFilter::self()->filterURI( *(m_filterData), filters );
+ if( final )
+ {
+ KURIFilter::self()->filterURI( *(m_filterData) );
+ }
+ else
+ {
+ QStringList filters;
+ filters << "kurisearchfilter" << "kshorturifilter";
+ KURIFilter::self()->filterURI( *(m_filterData), filters );
+ }
m_IconName = m_filterData->iconName();
if( m_IconName.isEmpty() || m_IconName == "unknown" )
m_IconName = QString::fromLatin1("go");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic