SQLStudio: Separate the script and results tabs with a vertical splitter

This commit is contained in:
Timothy Flynn 2022-12-31 11:04:13 -05:00 committed by Andreas Kling
parent cb06031180
commit 4fe437b4d2
2 changed files with 13 additions and 11 deletions

View file

@ -232,7 +232,7 @@ MainWidget::MainWidget()
m_query_results_table_view = m_query_results_widget->add<GUI::TableView>(); m_query_results_table_view = m_query_results_widget->add<GUI::TableView>();
m_action_tab_widget->on_tab_close_click = [this](auto&) { m_action_tab_widget->on_tab_close_click = [this](auto&) {
m_action_tab_widget->set_fixed_height(0); m_action_tab_widget->set_visible(false);
}; };
m_statusbar = find_descendant_of_type_named<GUI::Statusbar>("statusbar"sv); m_statusbar = find_descendant_of_type_named<GUI::Statusbar>("statusbar"sv);
@ -285,7 +285,7 @@ MainWidget::MainWidget()
individual_result_as_json.append(result_row_column); individual_result_as_json.append(result_row_column);
query_results_model->add(move(individual_result_as_json)); query_results_model->add(move(individual_result_as_json));
} }
m_action_tab_widget->set_fixed_height(200); m_action_tab_widget->set_visible(true);
}; };
} }

View file

@ -8,16 +8,18 @@
} }
} }
@GUI::TabWidget { @GUI::VerticalSplitter {
name: "script_tab_widget" @GUI::TabWidget {
reorder_allowed: true name: "script_tab_widget"
show_close_buttons: true reorder_allowed: true
} show_close_buttons: true
}
@GUI::TabWidget { @GUI::TabWidget {
name: "action_tab_widget" name: "action_tab_widget"
show_close_buttons: true show_close_buttons: true
fixed_height: 0 visible: false
}
} }
@GUI::Statusbar { @GUI::Statusbar {