From e4338547e53fcd05f24ea5c3ae36ca059f9924fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Tue, 15 Jan 2013 20:00:03 +0100 Subject: [PATCH] Arbitration: use a standard shorcut to select all the players --- qt/arbit_assignments.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/qt/arbit_assignments.cpp b/qt/arbit_assignments.cpp index ade8957..30d2021 100644 --- a/qt/arbit_assignments.cpp +++ b/qt/arbit_assignments.cpp @@ -77,11 +77,6 @@ ArbitAssignments::ArbitAssignments(QWidget *parent, PublicGame *iGame) treeViewPlayers->setColumnWidth(7, 25); QShortcut *shortcut; - shortcut = new QShortcut(QString("A"), treeViewPlayers); - shortcut->setContext(Qt::WidgetWithChildrenShortcut); - QObject::connect(shortcut, SIGNAL(activated()), - this, SLOT(selectAllPlayers())); - shortcut = new QShortcut(QKeySequence::Delete, treeViewPlayers); shortcut->setContext(Qt::WidgetWithChildrenShortcut); QObject::connect(shortcut, SIGNAL(activated()), @@ -319,7 +314,7 @@ void ArbitAssignments::populatePlayersMenu(QMenu &iMenu, const QPoint &iPoint) // Action to select all the players QAction *selectAllAction = new QAction(_q("Select all players"), this); selectAllAction->setStatusTip(_q("Select all the players")); - selectAllAction->setShortcut(Qt::Key_A); + selectAllAction->setShortcut(QKeySequence::SelectAll); QObject::connect(selectAllAction, SIGNAL(triggered()), this, SLOT(selectAllPlayers())); iMenu.addAction(selectAllAction);