this, SLOT(updateViewActions()));
connect(m_view, SIGNAL(sortOrderChanged(Qt::SortOrder)),
this, SLOT(slotSortOrderChanged(Qt::SortOrder)));
+ connect(m_view, SIGNAL(additionalInfoChanged()),
+ this, SLOT(slotAdditionalInfoChanged()));
QClipboard* clipboard = QApplication::clipboard();
connect(clipboard, SIGNAL(dataChanged()),
KAction* sortDescending = DolphinView::createSortDescendingAction(actionCollection());
connect(sortDescending, SIGNAL(triggered()), m_view, SLOT(toggleSortOrder()));
+ QActionGroup* showInformationActionGroup = DolphinView::createAdditionalInformationActionGroup(actionCollection());
+ connect(showInformationActionGroup, SIGNAL(triggered(QAction*)), m_view, SLOT(toggleAdditionalInfo(QAction*)));
+
// Go menu
KAction* newDirAction = DolphinView::createNewDirAction(actionCollection());
descending->setChecked(sortDescending);
}
+void DolphinPart::slotAdditionalInfoChanged()
+{
+ m_view->updateAdditionalInfoActions(actionCollection());
+}
+
#include "dolphinpart.moc"
/** Updates the state of the 'Sort Ascending/Descending' action. */
void slotSortOrderChanged(Qt::SortOrder);
+ /** Updates the state of the 'Additional Information' actions. */
+ void slotAdditionalInfoChanged();
+
private:
void createActions();
void createGoAction(const char* name, const char* iconName,