Use QFont enums instead of magic constants.
This commit is contained in:
parent
7d4ca72118
commit
ca788a9e69
|
@ -56,7 +56,7 @@ int InfoPane::createHeader(const QString& title, const int num_cols)
|
|||
QLabel* label = new QLabel(title, this);
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
font.setWeight(75);
|
||||
font.setWeight(QFont::Bold);
|
||||
label->setFont(font);
|
||||
label->setAlignment(Qt::AlignCenter);
|
||||
gridLayout().addWidget(label, y++, 0, 1, num_cols);
|
||||
|
|
|
@ -241,7 +241,7 @@ void PartitionManagerWidget::updatePartitions()
|
|||
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
font.setWeight(75);
|
||||
font.setWeight(QFont::Bold);
|
||||
deviceItem->setFont(0, font);
|
||||
|
||||
deviceItem->setText(0, selectedDevice()->prettyName());
|
||||
|
|
Loading…
Reference in New Issue