┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-01-22 00:39:52 +0000
committerDavid Faure <[email protected]>2008-01-22 00:39:52 +0000
commitd34f1d1b466a8163a2274fa6763e1049233f00bb (patch)
tree7d1eb3d337dfbd6de77dc85ab2aea692b53594a4 /src/dolphinmainwindow.h
parentaf333d9c7a8f344ed7f2a5cae02b383a5d0ee792 (diff)
Use a QActionGroup and save 6 slots (and the duplication of the action names in the code).
svn path=/branches/KDE/4.0/kdebase/apps/; revision=764537
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h30
1 files changed, 5 insertions, 25 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index e99add896..ab96cd155 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -273,23 +273,11 @@ private slots:
/** Switches between sorting by categories or not. */
void toggleSortCategorization();
- /** Switches between showing the size as additional information for the item or not. */
- void toggleSizeInfo();
-
- /** Switchtes between showing the date as additional information for the item or not. */
- void toggleDateInfo();
-
- /** Switchtes between showing the permissions as additional information for the item or not. */
- void togglePermissionsInfo();
-
- /** Switchtes between showing the owner as additional information for the item or not. */
- void toggleOwnerInfo();
-
- /** Switchtes between showing the group as additional information for the item or not. */
- void toggleGroupInfo();
-
- /** Switches between showing the MIME type as additional information for the item or not. */
- void toggleMimeInfo();
+ /**
+ * Applies \a info dependent from the current checked state of the action
+ * \a actionName to the file item delegate.
+ */
+ void toggleAdditionalInfo(QAction* action);
/**
* Switches between one and two views:
@@ -453,14 +441,6 @@ private:
*/
void updateSplitAction();
- /**
- * Helper method for the slots toggleDateInfo(), toggleSizeInfo()
- * and toggleMimeInfo(). Applies \a info dependent from the current
- * checked state of the action \a actionName to the file item delegate.
- */
- void toggleAdditionalInfo(const char* actionName,
- KFileItemDelegate::Information info);
-
private:
/**
* DolphinMainWindow supports up to two views beside each other.