From 37c5fc08133ff32941c7215c71084d6cdb7c6c6a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 12 Dec 2008 19:44:28 +0000 Subject: If the users enters an URL that represents a file, open the file by the corresponding application instead of showing an error message. BUG: 165877 svn path=/trunk/KDE/kdebase/apps/; revision=896189 --- src/dolphinviewcontainer.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/dolphinviewcontainer.h') diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 15a0ae6a8..d2adb5ed7 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -142,10 +142,19 @@ private slots: void slotDirListerCompleted(); /** - * Handles clicking on an item + * Handles clicking on an item. If the item is a directory, the + * directory is opened in the view. If the item is a file, the file + * gets started by the corresponding application. */ void slotItemTriggered(const KFileItem& item); + /** + * Opens a the file \a url by opening the corresponding application. + * Is connected with the signal urlIsFile() from DolphinDirLister and will + * get invoked if the user manually has entered a file into the URL navigator. + */ + void openFile(const KUrl& url); + /** * Shows the information for the item \a item inside the statusbar. If the * item is null, the default statusbar information is shown. -- cgit v1.3