From d4287eb8e36ead543eb595bfcaa217fa0edd2654 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 7 May 2008 20:02:37 +0000 Subject: allow Konqueror to open also files inside a new tab, not only directories CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=805184 --- src/dolphinview.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 1fcdaa087..9af9aab8d 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -316,6 +316,15 @@ public: */ QPair pasteInfo() const; + /** + * If \a tabsForFiles is true, the signal tabRequested() will also + * emitted also for files. Per default tabs for files is disabled + * and hence the signal tabRequested() will only be emitted for + * directories. + */ + void setTabsForFilesEnabled(bool tabsForFiles); + bool isTabsForFilesEnabled() const; + public slots: /** * Changes the directory to \a url. If the current directory is equal to @@ -641,11 +650,13 @@ private: } private: - bool m_active; - bool m_showPreview; - bool m_loadingDirectory; - bool m_storedCategorizedSorting; - bool m_isContextMenuOpen; // TODO: workaround for Qt-issue xxxxxx + bool m_active : 1; + bool m_showPreview : 1; + bool m_loadingDirectory : 1; + bool m_storedCategorizedSorting : 1; + bool m_tabsForFiles : 1; + bool m_isContextMenuOpen : 1; // TODO: workaround for Qt-issue xxxxxx + Mode m_mode; DolphinMainWindow* m_mainWindow; -- cgit v1.3