fix: new actions in shortcuts settings can't be setted
This commit is contained in:
parent
a534521aa5
commit
f258f56117
|
@ -1030,7 +1030,7 @@ void MainWindow::updateShortcuts()
|
||||||
{
|
{
|
||||||
ShortcutManager manager;
|
ShortcutManager manager;
|
||||||
manager.load();
|
manager.load();
|
||||||
manager.applyTo(findChildren<QAction*>());
|
manager.applyTo(listShortCutableActions());
|
||||||
}
|
}
|
||||||
|
|
||||||
QPlainTextEdit *MainWindow::txtLocals()
|
QPlainTextEdit *MainWindow::txtLocals()
|
||||||
|
@ -2231,6 +2231,7 @@ void MainWindow::buildContextMenus()
|
||||||
tr("Properties..."),
|
tr("Properties..."),
|
||||||
ui->lstProblemSet
|
ui->lstProblemSet
|
||||||
);
|
);
|
||||||
|
mProblem_Properties->setObjectName("Probelm_Properties");
|
||||||
connect(mProblem_Properties, &QAction::triggered, this,
|
connect(mProblem_Properties, &QAction::triggered, this,
|
||||||
&MainWindow::onProblemProperties);
|
&MainWindow::onProblemProperties);
|
||||||
mProblem_OpenSource=createActionFor(
|
mProblem_OpenSource=createActionFor(
|
||||||
|
@ -2248,17 +2249,22 @@ void MainWindow::buildContextMenus()
|
||||||
tr("Run All Cases"),
|
tr("Run All Cases"),
|
||||||
ui->tblProblemCases
|
ui->tblProblemCases
|
||||||
);
|
);
|
||||||
|
mProblem_RunAllCases->setObjectName("Problem_RunAllCases");
|
||||||
connect(mProblem_RunAllCases, &QAction::triggered, this,
|
connect(mProblem_RunAllCases, &QAction::triggered, this,
|
||||||
&MainWindow::on_btnRunAllProblemCases_clicked);
|
&MainWindow::on_btnRunAllProblemCases_clicked);
|
||||||
|
|
||||||
mProblem_RunCurrentCase = createActionFor(
|
mProblem_RunCurrentCase = createActionFor(
|
||||||
tr("Run Current Case"),
|
tr("Run Current Case"),
|
||||||
ui->tblProblemCases
|
ui->tblProblemCases
|
||||||
);
|
);
|
||||||
|
mProblem_RunCurrentCase->setObjectName("Problem_RunCurrentCases");
|
||||||
connect(mProblem_RunCurrentCase, &QAction::triggered, this,
|
connect(mProblem_RunCurrentCase, &QAction::triggered, this,
|
||||||
&MainWindow::onProblemRunCurrentCase);
|
&MainWindow::onProblemRunCurrentCase);
|
||||||
|
|
||||||
mProblem_batchSetCases = createActionFor(
|
mProblem_batchSetCases = createActionFor(
|
||||||
tr("Batch Set Cases"),
|
tr("Batch Set Cases"),
|
||||||
ui->tblProblemCases);
|
ui->tblProblemCases);
|
||||||
|
mProblem_batchSetCases->setObjectName("Problem_BatchSetCases");
|
||||||
connect(mProblem_batchSetCases, &QAction::triggered, this,
|
connect(mProblem_batchSetCases, &QAction::triggered, this,
|
||||||
&MainWindow::onProblemBatchSetCases);
|
&MainWindow::onProblemBatchSetCases);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue