Added automatic Ctrl+Number shortcuts for the 10 first woekbenches

This commit is contained in:
Yorik van Havre 2015-11-25 13:47:51 -02:00
parent 7c5e8d58cb
commit 3d6869bf68

View File

@ -535,6 +535,8 @@ void WorkbenchGroup::setWorkbenchData(int i, const QString& wb)
workbenches[i]->setToolTip(tip);
workbenches[i]->setStatusTip(tr("Select the '%1' workbench").arg(name));
workbenches[i]->setVisible(true);
if (i < 10)
workbenches[i]->setShortcut(QKeySequence(QString::fromUtf8("Ctrl+%1").arg(i)));
}
void WorkbenchGroup::refreshWorkbenchList()