mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Fix build with Qt6 QFont::setWeight()
In Qt5 it takes an int, in Qt6 it takes a QFont::Weight.
This commit is contained in:
parent
a07b9054bf
commit
0d81efae58
|
@ -34,7 +34,8 @@ ViewModeSettings::ViewModeSettings()
|
|||
|
||||
QFont font;
|
||||
font.setFamily(family);
|
||||
font.setWeight(group.readEntry<int>("FontWeight", QFont::Normal));
|
||||
const int weight = group.readEntry<int>("FontWeight", QFont::Normal);
|
||||
font.setWeight(static_cast<QFont::Weight>(weight));
|
||||
font.setItalic(group.readEntry("ItalicFont", false));
|
||||
removeEntries(group);
|
||||
|
||||
|
|
Loading…
Reference in a new issue