From 00649770e3334e492366ca552b47781a5bb5f51c Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Wed, 17 Aug 2016 23:13:54 +0300 Subject: [PATCH] Little fixes. --HG-- branch : feature --- .../vtools/dialogs/support/dialogeditwrongformula.cpp | 11 +++++------ .../vtools/dialogs/support/dialogeditwrongformula.ui | 6 ++++++ 2 files changed, 11 insertions(+), 6 deletions(-) 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