mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Don't assign twice the same key to the action New Tab
Second try: added Qt::CTRL + Qt::Key_T and Qt::CTRL + Qt::SHIFT + Qt::Key_N as QKeySequence::AddTab is only Qt::CTRL + Qt::SHIFT + Qt::Key_N under plasma.
This commit is contained in:
parent
ddfc86ab8c
commit
5d180c5bb2
1 changed files with 1 additions and 1 deletions
|
@ -1079,7 +1079,7 @@ void DolphinMainWindow::setupActions()
|
||||||
QAction* newTab = actionCollection()->addAction(QStringLiteral("new_tab"));
|
QAction* newTab = actionCollection()->addAction(QStringLiteral("new_tab"));
|
||||||
newTab->setIcon(QIcon::fromTheme(QStringLiteral("tab-new")));
|
newTab->setIcon(QIcon::fromTheme(QStringLiteral("tab-new")));
|
||||||
newTab->setText(i18nc("@action:inmenu File", "New Tab"));
|
newTab->setText(i18nc("@action:inmenu File", "New Tab"));
|
||||||
actionCollection()->setDefaultShortcuts(newTab, {QKeySequence::AddTab});
|
actionCollection()->setDefaultShortcuts(newTab, {Qt::CTRL + Qt::Key_T, Qt::CTRL + Qt::SHIFT + Qt::Key_N});
|
||||||
connect(newTab, &QAction::triggered, this, static_cast<void(DolphinMainWindow::*)()>(&DolphinMainWindow::openNewActivatedTab));
|
connect(newTab, &QAction::triggered, this, static_cast<void(DolphinMainWindow::*)()>(&DolphinMainWindow::openNewActivatedTab));
|
||||||
|
|
||||||
QAction* closeTab = KStandardAction::close(
|
QAction* closeTab = KStandardAction::close(
|
||||||
|
|
Loading…
Reference in a new issue