Commit 0d81efae authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Fix build with Qt6 QFont::setWeight()

In Qt5 it takes an int, in Qt6 it takes a QFont::Weight.
parent a07b9054
......@@ -34,7 +34,8 @@ ViewModeSettings::ViewModeSettings()
QFont font;
font.setWeight(group.readEntry<int>("FontWeight", QFont::Normal));
const int weight = group.readEntry<int>("FontWeight", QFont::Normal);
font.setItalic(group.readEntry("ItalicFont", false));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment