From e04ec8601f3771aa7ce98d9d1de34e332f26c103 Mon Sep 17 00:00:00 2001 From: Alex Miranda Date: Sun, 13 Oct 2019 16:37:00 +0200 Subject: Add actions for switching to a specific tab Summary: Add actions to switch to each of the first 9 tabs and another action to switch to the last tab. This feature makes it much easier to quickly switch between tabs just like you normally would be able to when using a web browser or other applications. Reviewers: #vdg, #dolphin, ngraham, elvisangelaccio Reviewed By: #vdg, #dolphin, ngraham Subscribers: meven, ngraham, elvisangelaccio, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D24353 --- src/dolphintabwidget.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/dolphintabwidget.h') diff --git a/src/dolphintabwidget.h b/src/dolphintabwidget.h index 4351a40a8..746aec6c6 100644 --- a/src/dolphintabwidget.h +++ b/src/dolphintabwidget.h @@ -154,6 +154,16 @@ public slots: */ void closeTab(const int index); + /** + * Activates the tab with the index \a index. + */ + void activateTab(const int index); + + /** + * Activates the last tab in the tab bar. + */ + void activateLastTab(); + /** * Activates the next tab in the tab bar. * If the current active tab is the last tab, it activates the first tab. -- cgit v1.3