diff options
| author | Peter Penz <[email protected]> | 2008-08-15 13:27:52 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-08-15 13:27:52 +0000 |
| commit | 5fc9514e6552a3af71c06e67b456f29601e022a9 (patch) | |
| tree | 272a1a77774c2818179e6ed239291c49bbfceb4d /src/dolphinview.h | |
| parent | 2731126e8d7f9f7b81dd1fe461b91680c0145401 (diff) | |
minor adjustment to prevent code duplication
svn path=/trunk/KDE/kdebase/apps/; revision=847497
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 63afaba58..613141535 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -673,16 +673,20 @@ private: * is emitted. */ void updateZoomLevel(int oldZoomLevel); + + /** + * Returns a list of URLs for all selected items. The list is + * simplified, so that when the URLs are part of different tree + * levels, only the parent is returned. + */ + KUrl::List simplifiedSelectedUrls() const; /** * Returns true, if the ColumnView is activated. As the column view * requires some special handling for iterating through directories, * this method has been introduced for convenience. */ - bool isColumnViewActive() const - { - return m_columnView != 0; - } + bool isColumnViewActive() const; private: bool m_active : 1; @@ -715,6 +719,11 @@ private: KUrl m_currentItemUrl; }; +inline bool DolphinView::isColumnViewActive() const +{ + return m_columnView != 0; +} + /// Allow using DolphinView::Mode in QVariant Q_DECLARE_METATYPE(DolphinView::Mode) |
