From 5b177dd50d1ea0eb9130c631757a687782a23cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 19 Aug 2010 17:27:10 +0200 Subject: Use Ctrl rather than Alt for switching tabs in the demo browser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- demos/browser/tabwidget.cpp | 4 ++-- 1 file 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())); } -- cgit v0.12