From 8d4fb3608927960d9e45e672ce1cbe1fa3a548f9 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 10 Oct 2007 23:01:35 +0000 Subject: DolphinPart: provide a way to switch between view modes in konqueror. Factorized those actions between dolphinmainwindow and dolphinpart (see new methods in dolphinview), and simplified mainwindow code by using the signal from the action group and the QVariant data of the actions (standard Qt4 solution for a group of actions). svn path=/trunk/KDE/kdebase/apps/; revision=723871 --- src/dolphinpart.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/dolphinpart.h') diff --git a/src/dolphinpart.h b/src/dolphinpart.h index b0def14f4..e4a0ffc9b 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -67,6 +67,14 @@ private Q_SLOTS: * @url URL which contains \a item. */ void slotOpenContextMenu(const KFileItem& item, const KUrl& url); + /** + * Emitted when the user requested a change of view mode + */ + void slotViewModeActionTriggered(QAction*); + +private: + void createActions(); + void updateViewActions(); private: DolphinView* m_view; -- cgit v1.3