LibGUI: Add 64-bit signed integer support to GVariant

What was previously the "Int" type is now "Int32" and "Int64".
This commit is contained in:
Andreas Kling 2020-01-27 10:55:10 +01:00
parent 137a45dff2
commit 6906edee9a
Notes: sideshowbarker 2024-07-19 09:46:48 +09:00
8 changed files with 120 additions and 64 deletions

View file

@ -258,7 +258,7 @@ public:
virtual void paint(GPainter& painter, const Rect& a_rect, const Palette& palette, const GModel& model, const GModelIndex& index) override
{
auto rect = a_rect.shrunken(2, 2);
auto percentage = model.data(index, GModel::Role::Custom).to_int();
auto percentage = model.data(index, GModel::Role::Custom).to_i32();
auto data = model.data(index, GModel::Role::Display);
String text;