From 4fe437b4d2fe287a20fba0dac846396f08e82ef4 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 31 Dec 2022 11:04:13 -0500 Subject: SQLStudio: Separate the script and results tabs with a vertical splitter --- Userland/DevTools/SQLStudio/MainWidget.cpp | 4 ++-- 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(); 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("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 { -- cgit v1.2.3