mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
SQLStudio: Separate the script and results tabs with a vertical splitter
This commit is contained in:
parent
cb06031180
commit
4fe437b4d2
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/trflynn89
Commit: 4fe437b4d2
Pull-request: https://github.com/SerenityOS/serenity/pull/17298
2 changed files with 13 additions and 11 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue