Little fixes.

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-08-17 23:13:54 +03:00
parent a5484c04de
commit 00649770e3
2 changed files with 11 additions and 6 deletions

View File

@ -506,16 +506,15 @@ void DialogEditWrongFormula::ShowFunctions()
ui->tableWidget->setColumnHidden(ColumnFullName, true); ui->tableWidget->setColumnHidden(ColumnFullName, true);
ui->labelDescription->setText(""); ui->labelDescription->setText("");
QMap<QString, qmu::QmuTranslation> var = qApp->TrVars()->GetFunctions(); QMap<QString, qmu::QmuTranslation>::const_iterator i = qApp->TrVars()->GetFunctions().constBegin();
QMapIterator<QString, qmu::QmuTranslation> iMap(var); while (i != qApp->TrVars()->GetFunctions().constEnd())
while (iMap.hasNext())
{ {
iMap.next();
ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1); 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)); item->setFont(QFont("Times", 12, QFont::Bold));
ui->tableWidget->setItem(ui->tableWidget->rowCount()-1, ColumnName, item); ui->tableWidget->setItem(ui->tableWidget->rowCount()-1, ColumnName, item);
item->setToolTip(iMap.value().getMdisambiguation()); item->setToolTip(i.value().getMdisambiguation());
++i;
} }
ui->tableWidget->blockSignals(false); ui->tableWidget->blockSignals(false);

View File

@ -331,6 +331,12 @@
</item> </item>
<item> <item>
<widget class="QRadioButton" name="radioButtonFunctions"> <widget class="QRadioButton" name="radioButtonFunctions">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Functions</string> <string>Functions</string>
</property> </property>