diff --git a/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp b/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp index 761521e39..7bc6e8ab2 100644 --- a/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp +++ b/src/libs/vtools/dialogs/support/dialogeditwrongformula.cpp @@ -506,16 +506,15 @@ void DialogEditWrongFormula::ShowFunctions() ui->tableWidget->setColumnHidden(ColumnFullName, true); ui->labelDescription->setText(""); - QMap var = qApp->TrVars()->GetFunctions(); - QMapIterator iMap(var); - while (iMap.hasNext()) + QMap::const_iterator i = qApp->TrVars()->GetFunctions().constBegin(); + while (i != qApp->TrVars()->GetFunctions().constEnd()) { - iMap.next(); ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1); - QTableWidgetItem *item = new QTableWidgetItem(iMap.key()); + QTableWidgetItem *item = new QTableWidgetItem(i.value().translate()); item->setFont(QFont("Times", 12, QFont::Bold)); ui->tableWidget->setItem(ui->tableWidget->rowCount()-1, ColumnName, item); - item->setToolTip(iMap.value().getMdisambiguation()); + item->setToolTip(i.value().getMdisambiguation()); + ++i; } ui->tableWidget->blockSignals(false); diff --git a/src/libs/vtools/dialogs/support/dialogeditwrongformula.ui b/src/libs/vtools/dialogs/support/dialogeditwrongformula.ui index 698699c66..9a6c353ae 100644 --- a/src/libs/vtools/dialogs/support/dialogeditwrongformula.ui +++ b/src/libs/vtools/dialogs/support/dialogeditwrongformula.ui @@ -331,6 +331,12 @@ + + + 0 + 0 + + Functions