[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2005-09-01 20:30:03
Message-ID: 1125606603.558554.26375.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 455995 by cullmann:
remove deprecated KFileOpenWithHandler
M +3 -0 KDE4PORTING.html
M +0 -20 kio/kfile/kopenwith.cpp
M +0 -31 kio/kfile/kopenwith.h
--- trunk/KDE/kdelibs/KDE4PORTING.html #455994:455995
@@ -194,6 +194,9 @@
<li>pathComboChanged( const QString& ); was removed
<li>void dirCompletion( const QString& ); was removed
+<h4>KFileOpenWithHandler</h4>
+<p>This class has been removed.</p>
+
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
<H3><A NAME="kparts">Changes in kparts</A></H3>
--- trunk/KDE/kdelibs/kio/kfile/kopenwith.cpp #455994:455995
@@ -842,26 +842,6 @@
QDialog::accept();
}
-
-///////////////
-
-#ifndef KDE_NO_COMPAT
-bool KFileOpenWithHandler::displayOpenWithDialog( const KURL::List& urls )
-{
- KOpenWithDlg l( urls, i18n("Open with:"), QString::null, 0L );
- if ( l.exec() )
- {
- KService::Ptr service = l.service();
- if ( !!service )
- return KRun::run( *service, urls );
-
- kdDebug(250) << "No service set, running " << l.text() << endl;
- return KRun::run( l.text(), urls );
- }
- return false;
-}
-#endif
-
#include "kopenwith.moc"
#include "kopenwith_p.moc"
--- trunk/KDE/kdelibs/kio/kfile/kopenwith.h #455994:455995
@@ -175,35 +175,4 @@
KOpenWithDlgPrivate *d;
};
-/* ------------------------------------------------------------------------- */
-
-#ifndef KDE_NO_COMPAT
-/**
- * This class handles the displayOpenWithDialog call, made by KRun
- * when it has no idea what to do with a URL.
- * It displays the open-with dialog box.
- *
- * If you use KRun you _need_ to create an instance of KFileOpenWithHandler
- * (except if you can make sure you only use it for executables or
- * Type=Application desktop files)
- *
- *
- */
-class KIO_EXPORT_DEPRECATED KFileOpenWithHandler : public KOpenWithHandler
-{
-public:
- KFileOpenWithHandler() : KOpenWithHandler() {}
- virtual ~KFileOpenWithHandler() {}
-
- /**
- * Opens an open-with dialog box for @p urls
- * @returns true if the operation succeeded
- */
- virtual bool displayOpenWithDialog( const KURL::List& urls );
-};
#endif
-
-
-/* ------------------------------------------------------------------------- */
-
-#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic