Ref T30, remove conflicting CTRL 0 from infoarea shortcuts

This commit is contained in:
Klaus Basan
2017-07-15 03:22:52 +02:00
committed by Mathew Sutcliffe
parent fcdf238512
commit 4acf496aa4

View File

@@ -214,13 +214,13 @@ namespace BlackGui
{
const QPixmap pm = this->indexToPixmap(i);
const QString wt(dockWidgetInfoArea->windowTitleBackup());
static const QString keys("1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ");
static const QString keys("123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
QAction *action = new QAction(QIcon(pm), wt, parent);
action->setData(i);
action->setObjectName(this->objectName().append(":getInfoAreaSelectActions:").append(wt));
if (withShortcut && i < keys.length())
{
static const QString ks("Ctrl+%1");
static const QString ks("Ctrl+%1"); // Qt::CTRL
action->setShortcut(QKeySequence(ks.arg(keys.at(i))));
}