diff options
| author | Emmanuel Pescosta <[email protected]> | 2013-05-28 17:31:14 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2013-06-04 15:27:45 +0200 |
| commit | 616294bc805242f29a5b9c8d44ddd1e7466505ec (patch) | |
| tree | 1eccdaf961247ad100efca29296ae0bc48ce405c /src/views/dolphinview.h | |
| parent | 780327f7d3652d4964933533ff6a856bb8aaea22 (diff) | |
Bug 196035 - middle clicking on archive files in dolphin does not open them in a new tab
When 'browse through archives' is enabled, open archive files
like folders on middle clicking, context menu -> new tab action
and context menu -> new window action.
BUG: 196035
REVIEW: 110487
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index e50dffcd8..5a70c5502 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -304,6 +304,14 @@ public: void setViewPropertiesContext(const QString& context); QString viewPropertiesContext() const; + /** + * Checks if the given \a item can be opened as folder (e.g. archives). + * This function will also adjust the \a url (e.g. change the protocol). + * @return a valid and adjusted url if the item can be opened as folder, + * otherwise return an empty url. + */ + static KUrl openItemAsFolderUrl(const KFileItem& item, const bool browseThroughArchives = true); + public slots: /** * Changes the directory to \a url. If the current directory is equal to |
