From 90e39e3116b5821addce8035b82619b726a49eab Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 10 Oct 2011 22:05:32 +0200 Subject: Allow changing shortcuts for the Panel actions Until now the shortcuts of the Panel actions could not be changed as they did not show up in the "Configure shortcuts..." dialog. The patch is based on the work of "SiegeLord" and Fabian Henze attached to bug 273050. BUG: 273050 FIXED-IN: 4.8.0 --- src/dolphinmainwindow.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 6736e24aa..fd9e10329 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -531,13 +531,15 @@ private: QString squeezedText(const QString& text) const; /** - * Adds a clone of the action \a action to the action-collection with - * the name \a actionName, so that the action \a action also can be - * added to the toolbar by the user. This is useful if the creation of - * \a action is e.g. done in Qt and hence cannot be added directly - * to the action-collection. - */ - void addActionCloneToCollection(QAction* action, const QString& actionName); + * Creates an action for showing/hiding a panel, that is accessible + * in "Configure toolbars..." and "Configure shortcuts...". This is necessary + * as the action for toggling the dock visibility is done by Qt which + * is no KAction instance. + */ + void createPanelAction(const KIcon& icon, + const QKeySequence& shortcut, + QAction* dockAction, + const QString& actionName); private: /** -- cgit v1.3.1