mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
fix default tab prev/next shortcuts
take into accound the whole list, not just the first shortcut
This commit is contained in:
parent
037d5db85b
commit
a069d24d4b
|
@ -1118,12 +1118,10 @@ void DolphinMainWindow::setupActions()
|
||||||
KStandardAction::preferences(this, SLOT(editSettings()), actionCollection());
|
KStandardAction::preferences(this, SLOT(editSettings()), actionCollection());
|
||||||
|
|
||||||
// not in menu actions
|
// not in menu actions
|
||||||
QList<QKeySequence> nextTabKeys;
|
QList<QKeySequence> nextTabKeys = KStandardShortcut::tabNext();
|
||||||
nextTabKeys.append(KStandardShortcut::tabNext().first()); //TODO: is this correct
|
|
||||||
nextTabKeys.append(QKeySequence(Qt::CTRL | Qt::Key_Tab));
|
nextTabKeys.append(QKeySequence(Qt::CTRL | Qt::Key_Tab));
|
||||||
|
|
||||||
QList<QKeySequence> prevTabKeys;
|
QList<QKeySequence> prevTabKeys = KStandardShortcut::tabPrev();
|
||||||
prevTabKeys.append(KStandardShortcut::tabPrev().first()); //TODO: is this correct
|
|
||||||
prevTabKeys.append(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_Tab));
|
prevTabKeys.append(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_Tab));
|
||||||
|
|
||||||
QAction* activateNextTab = actionCollection()->addAction("activate_next_tab");
|
QAction* activateNextTab = actionCollection()->addAction("activate_next_tab");
|
||||||
|
|
|
@ -76,6 +76,4 @@ void ConfigurePreviewPluginDialog::slotOk()
|
||||||
QApplication::changeOverrideCursor(Qt::BusyCursor);
|
QApplication::changeOverrideCursor(Qt::BusyCursor);
|
||||||
KIO::NetAccess::del(QUrl::fromLocalFile(QDir::homePath() + "/.thumbnails/"), this);
|
KIO::NetAccess::del(QUrl::fromLocalFile(QDir::homePath() + "/.thumbnails/"), this);
|
||||||
QApplication::restoreOverrideCursor();
|
QApplication::restoreOverrideCursor();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue