From ca788a9e6919289256cd297c8586ee44e9d1f1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 18 Jan 2022 20:34:18 +0000 Subject: [PATCH] Use QFont enums instead of magic constants. --- src/gui/infopane.cpp | 2 +- src/gui/partitionmanagerwidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/infopane.cpp b/src/gui/infopane.cpp index 8319ba1..dc74b76 100644 --- a/src/gui/infopane.cpp +++ b/src/gui/infopane.cpp @@ -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); diff --git a/src/gui/partitionmanagerwidget.cpp b/src/gui/partitionmanagerwidget.cpp index 9033bbe..8574937 100644 --- a/src/gui/partitionmanagerwidget.cpp +++ b/src/gui/partitionmanagerwidget.cpp @@ -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());