mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 15:02:56 +00:00
LibGUI+Userland: Store column names in JsonArrayModel as String
This commit is contained in:
parent
945f05ed76
commit
b7558a5ce4
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/krkk
Commit: b7558a5ce4
Pull-request: https://github.com/SerenityOS/serenity/pull/18836
9 changed files with 68 additions and 68 deletions
|
@ -286,7 +286,7 @@ ErrorOr<void> MainWidget::setup()
|
|||
|
||||
Vector<GUI::JsonArrayModel::FieldSpec> query_result_fields;
|
||||
for (auto& column_name : m_result_column_names)
|
||||
query_result_fields.empend(column_name, column_name, Gfx::TextAlignment::CenterLeft);
|
||||
query_result_fields.empend(column_name, String::from_deprecated_string(column_name).release_value_but_fixme_should_propagate_errors(), Gfx::TextAlignment::CenterLeft);
|
||||
|
||||
auto query_results_model = GUI::JsonArrayModel::create("{}", move(query_result_fields));
|
||||
m_query_results_table_view->set_model(MUST(GUI::SortingProxyModel::create(*query_results_model)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue