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 199f16f4c8
commit ea2549d1a6

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()