diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-12-31 11:04:13 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-03 20:34:45 +0100 |
commit | 4fe437b4d2fe287a20fba0dac846396f08e82ef4 (patch) | |
tree | 6651a3d3f558cfbbe709285a2a5598952de69e08 | |
parent | cb06031180549014e1c2c0a8708e53d4dc4d9b23 (diff) | |
download | serenity-4fe437b4d2fe287a20fba0dac846396f08e82ef4.zip |
SQLStudio: Separate the script and results tabs with a vertical splitter
-rw-r--r-- | Userland/DevTools/SQLStudio/MainWidget.cpp | 4 | ||||
-rw-r--r-- | Userland/DevTools/SQLStudio/SQLStudio.gml | 20 |
2 files changed, 13 insertions, 11 deletions
diff --git a/Userland/DevTools/SQLStudio/MainWidget.cpp b/Userland/DevTools/SQLStudio/MainWidget.cpp index 08cfa90d4c..5e4197f50c 100644 --- a/Userland/DevTools/SQLStudio/MainWidget.cpp +++ b/Userland/DevTools/SQLStudio/MainWidget.cpp @@ -232,7 +232,7 @@ MainWidget::MainWidget() 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->set_fixed_height(0); + m_action_tab_widget->set_visible(false); }; 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); query_results_model->add(move(individual_result_as_json)); } - m_action_tab_widget->set_fixed_height(200); + m_action_tab_widget->set_visible(true); }; } diff --git a/Userland/DevTools/SQLStudio/SQLStudio.gml b/Userland/DevTools/SQLStudio/SQLStudio.gml index 7de474a8d7..c08bffe0d7 100644 --- a/Userland/DevTools/SQLStudio/SQLStudio.gml +++ b/Userland/DevTools/SQLStudio/SQLStudio.gml @@ -8,16 +8,18 @@ } } - @GUI::TabWidget { - name: "script_tab_widget" - reorder_allowed: true - show_close_buttons: true - } + @GUI::VerticalSplitter { + @GUI::TabWidget { + name: "script_tab_widget" + reorder_allowed: true + show_close_buttons: true + } - @GUI::TabWidget { - name: "action_tab_widget" - show_close_buttons: true - fixed_height: 0 + @GUI::TabWidget { + name: "action_tab_widget" + show_close_buttons: true + visible: false + } } @GUI::Statusbar { |