diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-27 10:55:10 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-27 10:55:10 +0100 |
commit | 6906edee9a89619eefbea614983fa0c61d20c8a7 (patch) | |
tree | 747858f7635aacd5724e8735a42707f9edff2964 /Applications/SystemMonitor | |
parent | 137a45dff2a6c60dbca34ee6b1e27ff476fe9b40 (diff) | |
download | serenity-6906edee9a89619eefbea614983fa0c61d20c8a7.zip |
LibGUI: Add 64-bit signed integer support to GVariant
What was previously the "Int" type is now "Int32" and "Int64".
Diffstat (limited to 'Applications/SystemMonitor')
-rw-r--r-- | Applications/SystemMonitor/ProcessTableView.cpp | 2 | ||||
-rw-r--r-- | Applications/SystemMonitor/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Applications/SystemMonitor/ProcessTableView.cpp b/Applications/SystemMonitor/ProcessTableView.cpp index 05589d15da..bec942b6ae 100644 --- a/Applications/SystemMonitor/ProcessTableView.cpp +++ b/Applications/SystemMonitor/ProcessTableView.cpp @@ -56,5 +56,5 @@ pid_t ProcessTableView::selected_pid() const { if (selection().is_empty()) return -1; - return model()->data(model()->index(selection().first().row(), ProcessModel::Column::PID), GModel::Role::Sort).as_int(); + return model()->data(model()->index(selection().first().row(), ProcessModel::Column::PID), GModel::Role::Sort).as_i32(); } diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp index 578e0b47f1..8a551a0567 100644 --- a/Applications/SystemMonitor/main.cpp +++ b/Applications/SystemMonitor/main.cpp @@ -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; |