summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-08-19 15:27:10 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-08-20 12:34:07 (GMT)
commit5b177dd50d1ea0eb9130c631757a687782a23cd3 (patch)
tree521fd8cedde7033f4854b16dd74246fb4292d3b4 /demos
parentf13c060a187149a03b4115b1f62d9690d69fcbda (diff)
downloadQt-5b177dd50d1ea0eb9130c631757a687782a23cd3.zip
Qt-5b177dd50d1ea0eb9130c631757a687782a23cd3.tar.gz
Qt-5b177dd50d1ea0eb9130c631757a687782a23cd3.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>
Diffstat (limited to 'demos')
-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()));
}