From 12162850ff9f794e14e07ade3f28bfb0dc50d6d6 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Tue, 24 Oct 2023 13:44:49 +0200 Subject: Panel: fix actions and shortcuts to toggle their visibility --- src/dolphinmainwindow.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index b45c846b8..551e28192 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -659,11 +659,9 @@ private: /** * 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. + * in "Configure toolbars..." and "Configure shortcuts...". */ - void createPanelAction(const QIcon &icon, const QKeySequence &shortcut, QAction *dockAction, const QString &actionName); + void createPanelAction(const QIcon &icon, const QKeySequence &shortcut, QDockWidget *dockAction, const QString &actionName); /** Adds "What's This?" texts to many widgets and StandardActions. */ void setupWhatsThis(); -- cgit v1.3