diff options
| author | Alex Miranda <[email protected]> | 2019-10-13 16:37:00 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-10-13 16:41:00 +0200 |
| commit | e04ec8601f3771aa7ce98d9d1de34e332f26c103 (patch) | |
| tree | f11990490628100944e5d57b00dd0042b51c8098 /src/dolphintabwidget.h | |
| parent | e7de9862022a08e1dd9204f0acd6329ac7bf5353 (diff) | |
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
Diffstat (limited to 'src/dolphintabwidget.h')
| -rw-r--r-- | src/dolphintabwidget.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphintabwidget.h b/src/dolphintabwidget.h index 4351a40a8..746aec6c6 100644 --- a/src/dolphintabwidget.h +++ b/src/dolphintabwidget.h @@ -155,6 +155,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. */ |
