┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-01-22 01:22:56 +0000
committerDavid Faure <[email protected]>2008-01-22 01:22:56 +0000
commit13706a2952a7e8b9af6a9cf33d43200c3d360c41 (patch)
treed130bab747ebfb5741d1012c6d4dc539549c33ef /src/dolphinview.h
parentcde816c4f5b3ff547124910185b7be76763c2e34 (diff)
Move the code handling the additional-info-actions to DolphinView; simplify signal from DolphinView (it has the info anyway).
The fact that the last additional-info doesn't show up in the icon view is in fact a KFileItemDelegate bug, not a bug in this code :) svn path=/branches/KDE/4.0/kdebase/apps/; revision=764544
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index e69f0bbc6..a85c184ef 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -382,6 +382,11 @@ public:
static QActionGroup* createAdditionalInformationActionGroup(KActionCollection* collection);
/**
+ * Updates the state of the 'Additional Information' actions in \a collection.
+ */
+ void updateAdditionalInfoActions(KActionCollection* collection);
+
+ /**
* Returns the action name corresponding to the current view mode
*/
QString currentViewModeActionName() const;
@@ -439,6 +444,12 @@ public slots:
/** Switches between an ascending and descending sorting order. */
void toggleSortOrder();
+ /**
+ * Switches on or off the displaying of additional information
+ * as specified by \a action.
+ */
+ void toggleAdditionalInfo(QAction* action);
+
signals:
/**
* Is emitted if the view has been activated by e. g. a mouse click.
@@ -474,8 +485,8 @@ signals:
/** Is emitted if the sort order (ascending or descending) has been changed. */
void sortOrderChanged(Qt::SortOrder order);
- /** Is emitted if the additional information for an item has been changed. */
- void additionalInfoChanged(const KFileItemDelegate::InformationList& info);
+ /** Is emitted if the additional information shown for this view has been changed. */
+ void additionalInfoChanged();
/**
* Is emitted if information of an item is requested to be shown e. g. in the sidebar.