From ded81093686f9d180f9bd0b3587ef40b82918ad2 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 6 Dec 2008 12:24:45 +0100 Subject: ctrl + tab switching: try 5.. --- src/tabwidget.cpp | 5 +++-- 1 file 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 +#include // Qt Includes #include @@ -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); -- cgit v1.2.1