From d90da9a85ed554dbe347ec8af8ea596ad06bb729 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 8 Apr 2012 00:09:11 +0200 Subject: Remove toolbar-spacer if the menu has been disabled Aligning the control-button to the right of Dolphin has the problem that sub-menus might be opened on the left of the menu if the Dolphin window reaches the right of the desktop. So the toolbar-spacer has been removed and a default label has been applied to the control-button to increase the target-area for opening the menu. --- src/dolphinmainwindow.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index c2a548906..8bf761658 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -456,11 +456,9 @@ private slots: const KUrl& url, const QList& customActions); - void updateToolBarMenu(); + void updateControlMenu(); void updateToolBar(); - void slotToolBarSpacerDeleted(); - void slotToolBarMenuButtonDeleted(); - void slotToolBarIconSizeChanged(const QSize& iconSize); + void slotControlButtonDeleted(); private: /** @@ -482,8 +480,8 @@ private: void updateViewActions(); void updateGoActions(); - void createToolBarMenuButton(); - void deleteToolBarMenuButton(); + void createControlButton(); + void deleteControlButton(); /** * Adds the action \p action to the menu \p menu in @@ -585,8 +583,7 @@ private: QWeakPointer m_settingsDialog; // Members for the toolbar menu that is shown when the menubar is hidden: - QWidget* m_toolBarSpacer; - QToolButton* m_openToolBarMenuButton; + QToolButton* m_controlButton; QTimer* m_updateToolBarTimer; KJob* m_lastHandleUrlStatJob; -- cgit v1.3