mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
The tab navigation shortcut workaround for RTL layouts is not needed anymore, as Qt supports that by default.
Before this, pressing Ctrl+Tab makes the previous tab (in RTL layout) the activated one, and vice versa. REVIEW: 128853
This commit is contained in:
parent
82cfc125f4
commit
57a19efe93
|
@ -1130,14 +1130,14 @@ void DolphinMainWindow::setupActions()
|
|||
activateNextTab->setText(i18nc("@action:inmenu", "Activate Next Tab"));
|
||||
activateNextTab->setEnabled(false);
|
||||
connect(activateNextTab, &QAction::triggered, m_tabWidget, &DolphinTabWidget::activateNextTab);
|
||||
actionCollection()->setDefaultShortcuts(activateNextTab, QApplication::isRightToLeft() ? prevTabKeys : nextTabKeys);
|
||||
actionCollection()->setDefaultShortcuts(activateNextTab, nextTabKeys);
|
||||
|
||||
QAction* activatePrevTab = actionCollection()->addAction(QStringLiteral("activate_prev_tab"));
|
||||
activatePrevTab->setIconText(i18nc("@action:inmenu", "Previous Tab"));
|
||||
activatePrevTab->setText(i18nc("@action:inmenu", "Activate Previous Tab"));
|
||||
activatePrevTab->setEnabled(false);
|
||||
connect(activatePrevTab, &QAction::triggered, m_tabWidget, &DolphinTabWidget::activatePrevTab);
|
||||
actionCollection()->setDefaultShortcuts(activatePrevTab, QApplication::isRightToLeft() ? nextTabKeys : prevTabKeys);
|
||||
actionCollection()->setDefaultShortcuts(activatePrevTab, prevTabKeys);
|
||||
|
||||
// for context menu
|
||||
QAction* openInNewTab = actionCollection()->addAction(QStringLiteral("open_in_new_tab"));
|
||||
|
|
Loading…
Reference in a new issue