summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.org>2025-11-26 13:44:27 +0800
committerErik Prabowo Kamal <erik@darapsa.org>2025-11-26 13:44:27 +0800
commit765fc04a928bfdc8845b38a52fd04e59a295107d (patch)
tree1cb78cf8bfdfb2cd25e2a362b6803c7211189895
parente2e9581f380ed908fef7c7dff65c65cd103c43dc (diff)
Fix for cannot init a parameter of type 'Weight'
with an lvalue of type 'int64_t' (aka 'long')
-rw-r--r--Bootstrap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bootstrap.cxx b/Bootstrap.cxx
index 92fa469..a741ea8 100644
--- a/Bootstrap.cxx
+++ b/Bootstrap.cxx
@@ -20,7 +20,7 @@
#define OVERRIDE_FONT_WEIGHT(A, B) \
{\
auto fontWeight = toml_int_in(bootstrap, A);\
- if (fontWeight.ok) B.setWeight(fontWeight.u.i);\
+ if (fontWeight.ok) B.setWeight(static_cast<QFont::Weight>(fontWeight.u.i));\
}
#define OVERRIDE_COLORS(A, B) \