┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-08-24 15:45:28 +0200
committerKai Uwe Broulik <[email protected]>2017-08-24 15:45:28 +0200
commit101884841659cf7b1d735e894477415cddd1787f (patch)
tree48a53b83e7f726e03afcbe8862bf360134bf3e52 /src/dolphinmainwindow.h
parent24baf24f5fe089302850c7844f1ecdfd60fbb0f1 (diff)
Support middle clicking of Back/Forward/Up/Home toolbar buttons
This opens the resulting page in a new tab. BUG: 358649 Differential Revision: https://phabricator.kde.org/D7390
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h35
1 files changed, 16 insertions, 19 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index d741eb21e..06eb5a7a5 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -267,28 +267,17 @@ private slots:
/** Changes the location to the home URL. */
void goHome();
- /**
- * Open the previous URL in the URL history in a new tab
- * if the middle mouse button is clicked.
- */
- void goBack(Qt::MouseButtons buttons);
+ /** Open the previous URL in the URL history in a new tab. */
+ void goBackInNewTab();
- /**
- * Open the next URL in the URL history in a new tab
- * if the middle mouse button is clicked.
- */
- void goForward(Qt::MouseButtons buttons);
+ /** Open the next URL in the URL history in a new tab. */
+ void goForwardInNewTab();
- /**
- * Open the URL one hierarchy above the current URL in a new tab
- * if the middle mouse button is clicked.
- */
- void goUp(Qt::MouseButtons buttons);
+ /** Open the URL one hierarchy above the current URL in a new tab. */
+ void goUpInNewTab();
- /**
- * Open the home URL in a new tab
- */
- void goHome(Qt::MouseButtons buttons);
+ /** * Open the home URL in a new tab. */
+ void goHomeInNewTab();
/** Opens Kompare for 2 selected files. */
void compareFiles();
@@ -425,6 +414,14 @@ private slots:
*/
void slotDirectoryLoadingCompleted();
+ /**
+ * Is called when the user middle clicks a toolbar button.
+ *
+ * Here middle clicking Back/Forward/Up/Home will open the resulting
+ * folder in a new tab.
+ */
+ void slotToolBarActionMiddleClicked(QAction *action);
+
private:
void setupActions();
void setupDockWidgets();