Removed hard coded font value. Kept only its bold status.
--HG-- branch : develop
This commit is contained in:
parent
34c49f3323
commit
1c6ff72b23
|
@ -182,7 +182,9 @@ void DialogHistory::FillTable()
|
||||||
}
|
}
|
||||||
|
|
||||||
QTableWidgetItem *item = new QTableWidgetItem(historyRecord);
|
QTableWidgetItem *item = new QTableWidgetItem(historyRecord);
|
||||||
item->setFont(QFont("Times", 12, QFont::Bold));
|
QFont font = item->font();
|
||||||
|
font.setBold(true);
|
||||||
|
item->setFont(font);
|
||||||
item->setFlags(item->flags() ^ Qt::ItemIsEditable);
|
item->setFlags(item->flags() ^ Qt::ItemIsEditable);
|
||||||
ui->tableWidget->setItem(currentRow, 1, item);
|
ui->tableWidget->setItem(currentRow, 1, item);
|
||||||
++count;
|
++count;
|
||||||
|
|
|
@ -210,7 +210,9 @@ void DialogIncrements::FillTable(const QMap<QString, T> &varTable, QTableWidget
|
||||||
|
|
||||||
QTableWidgetItem *item = new QTableWidgetItem(i.key());
|
QTableWidgetItem *item = new QTableWidgetItem(i.key());
|
||||||
item->setTextAlignment(Qt::AlignLeft);
|
item->setTextAlignment(Qt::AlignLeft);
|
||||||
item->setFont(QFont(QStringLiteral("Times"), 12, QFont::Bold));
|
QFont font = item->font();
|
||||||
|
font.setBold(true);
|
||||||
|
item->setFont(font);
|
||||||
table->setItem(currentRow, 0, item);
|
table->setItem(currentRow, 0, item);
|
||||||
|
|
||||||
item = new QTableWidgetItem(qApp->LocaleToString(length));
|
item = new QTableWidgetItem(qApp->LocaleToString(length));
|
||||||
|
|
|
@ -536,7 +536,9 @@ void DialogEditWrongFormula::ShowVariable(const QMap<key, val> &var)
|
||||||
{// If we create this variable don't show
|
{// If we create this variable don't show
|
||||||
ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1);
|
ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1);
|
||||||
QTableWidgetItem *item = new QTableWidgetItem(iMap.key());
|
QTableWidgetItem *item = new QTableWidgetItem(iMap.key());
|
||||||
item->setFont(QFont("Times", 12, QFont::Bold));
|
QFont font = item->font();
|
||||||
|
font.setBold(true);
|
||||||
|
item->setFont(font);
|
||||||
ui->tableWidget->setItem(ui->tableWidget->rowCount()-1, ColumnName, item);
|
ui->tableWidget->setItem(ui->tableWidget->rowCount()-1, ColumnName, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -570,11 +572,15 @@ void DialogEditWrongFormula::ShowMeasurements(const QMap<QString, QSharedPointer
|
||||||
{// If we create this variable don't show
|
{// If we create this variable don't show
|
||||||
ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1);
|
ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1);
|
||||||
QTableWidgetItem *itemName = new QTableWidgetItem(iMap.key());
|
QTableWidgetItem *itemName = new QTableWidgetItem(iMap.key());
|
||||||
itemName->setFont(QFont("Times", 12, QFont::Bold));
|
QFont fontName = itemName->font();
|
||||||
|
fontName.setBold(true);
|
||||||
|
itemName->setFont(fontName);
|
||||||
itemName->setToolTip(itemName->text());
|
itemName->setToolTip(itemName->text());
|
||||||
|
|
||||||
QTableWidgetItem *itemFullName = new QTableWidgetItem();
|
QTableWidgetItem *itemFullName = new QTableWidgetItem();
|
||||||
itemFullName->setFont(QFont("Times", 12, QFont::Bold));
|
QFont fontFullName = itemName->font();
|
||||||
|
fontFullName.setBold(true);
|
||||||
|
itemFullName->setFont(fontFullName);
|
||||||
if (iMap.value()->IsCustom())
|
if (iMap.value()->IsCustom())
|
||||||
{
|
{
|
||||||
itemFullName->setText(iMap.value()->GetGuiText());
|
itemFullName->setText(iMap.value()->GetGuiText());
|
||||||
|
@ -612,7 +618,9 @@ void DialogEditWrongFormula::ShowFunctions()
|
||||||
{
|
{
|
||||||
ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1);
|
ui->tableWidget->setRowCount(ui->tableWidget->rowCount() + 1);
|
||||||
QTableWidgetItem *item = new QTableWidgetItem(i.value().translate(qApp->Settings()->GetLocale()));
|
QTableWidgetItem *item = new QTableWidgetItem(i.value().translate(qApp->Settings()->GetLocale()));
|
||||||
item->setFont(QFont("Times", 12, QFont::Bold));
|
QFont font = item->font();
|
||||||
|
font.setBold(true);
|
||||||
|
item->setFont(font);
|
||||||
ui->tableWidget->setItem(ui->tableWidget->rowCount()-1, ColumnName, item);
|
ui->tableWidget->setItem(ui->tableWidget->rowCount()-1, ColumnName, item);
|
||||||
item->setToolTip(i.value().getMdisambiguation());
|
item->setToolTip(i.value().getMdisambiguation());
|
||||||
++i;
|
++i;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user