summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-08-19 15:27:10 (GMT)
committerJesper Thomschutz <jesper.thomschutz@nokia.com>2010-08-23 09:27:30 (GMT)
commitec67f2d6ab333f2c8735ad4ccec36ca834dd8aab (patch)
treeedca5f6e3ead748288e72792803ae7879413aff0
parent76b16095aae1e18f0189ac8e90df8be14f5d94c0 (diff)
downloadQt-ec67f2d6ab333f2c8735ad4ccec36ca834dd8aab.zip
Qt-ec67f2d6ab333f2c8735ad4ccec36ca834dd8aab.tar.gz
Qt-ec67f2d6ab333f2c8735ad4ccec36ca834dd8aab.tar.bz2
Use Ctrl rather than Alt for switching tabs in the demo browser
Alt+1, Alt+2, etc produce actual symbols on some keyboard layouts, for example Norwegian, which prevents you from typing the @ symbol. Reviewed-by: Alexis Ménard <alexis.menard@nokia.com> (cherry picked from commit 5b177dd50d1ea0eb9130c631757a687782a23cd3)
-rw-r--r--demos/browser/tabwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/browser/tabwidget.cpp b/demos/browser/tabwidget.cpp
index ae0c88e..cf1cd56 100644
--- a/demos/browser/tabwidget.cpp
+++ b/demos/browser/tabwidget.cpp
@@ -67,12 +67,12 @@ TabBar::TabBar(QWidget *parent)
connect(this, SIGNAL(customContextMenuRequested(QPoint)),
this, SLOT(contextMenuRequested(QPoint)));
- QString alt = QLatin1String("Alt+%1");
+ QString ctrl = QLatin1String("Ctrl+%1");
for (int i = 1; i <= 10; ++i) {
int key = i;
if (key == 10)
key = 0;
- QShortcut *shortCut = new QShortcut(alt.arg(key), this);
+ QShortcut *shortCut = new QShortcut(ctrl.arg(key), this);
m_tabShortcuts.append(shortCut);
connect(shortCut, SIGNAL(activated()), this, SLOT(selectTabAction()));
}