mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 13:35:07 +00:00
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:
parent
137a45dff2
commit
6906edee9a
8 changed files with 120 additions and 64 deletions
|
@ -95,7 +95,7 @@ VBPropertiesWindow::VBPropertiesWindow()
|
|||
if (!m_table_view->model())
|
||||
return nullptr;
|
||||
auto type_index = m_table_view->model()->index(index.row(), VBWidgetPropertyModel::Column::Type);
|
||||
auto type = m_table_view->model()->data(type_index, GModel::Role::Custom).to_int();
|
||||
auto type = m_table_view->model()->data(type_index, GModel::Role::Custom).to_i32();
|
||||
switch ((GVariant::Type)type) {
|
||||
case GVariant::Type::Bool:
|
||||
return make<BoolModelEditingDelegate>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue