diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-06 12:24:45 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-06 12:24:45 +0100 |
commit | ded81093686f9d180f9bd0b3587ef40b82918ad2 (patch) | |
tree | 17630e62984ba4943be11d1769277b5df2075b28 /src | |
parent | better fullscreen-ing.. (diff) | |
download | rekonq-ded81093686f9d180f9bd0b3587ef40b82918ad2.tar.xz |
ctrl + tab switching: try 5..
Diffstat (limited to 'src')
-rw-r--r-- | src/tabwidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tabwidget.cpp b/src/tabwidget.cpp index 51a404d0..57e80856 100644 --- a/src/tabwidget.cpp +++ b/src/tabwidget.cpp @@ -30,6 +30,7 @@ // KDE Includes #include <KShortcut> +#include <KStandardShortcut> // Qt Includes #include <QtGui> @@ -232,11 +233,11 @@ TabWidget::TabWidget(QWidget *parent) connect(m_closeTabAction, SIGNAL(triggered()), this, SLOT(closeTab())); m_nextTabAction = new KAction(i18n("Show Next Tab"), this); - m_nextTabAction->setShortcut( KShortcut( Qt::CTRL | Qt::Key_Tab ) ); + m_nextTabAction->setShortcuts( QApplication::isRightToLeft() ? KStandardShortcut::tabPrev() : KStandardShortcut::tabNext() ); connect(m_nextTabAction, SIGNAL(triggered()), this, SLOT(nextTab())); m_previousTabAction = new KAction(i18n("Show Previous Tab"), this); - m_previousTabAction->setShortcut( KShortcut( Qt::CTRL | Qt::SHIFT | Qt::Key_Tab ) ); + m_previousTabAction->setShortcuts( QApplication::isRightToLeft() ? KStandardShortcut::tabNext() : KStandardShortcut::tabPrev() ); connect(m_previousTabAction, SIGNAL(triggered()), this, SLOT(previousTab())); m_recentlyClosedTabsMenu = new KMenu(this); |