mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
UI/Qt: Set a minimum size policy for the navigation control toolbar
This prevents the user being able to shrink the window to the point that the location bar and other controls are no longer visible.
This commit is contained in:
parent
9ced3ec84d
commit
4ed46adeee
Notes:
sideshowbarker
2024-07-17 02:05:41 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/4ed46adeee Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/516
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, St
|
|||
m_toolbar->addAction(&m_window->reload_action());
|
||||
m_toolbar->addWidget(m_location_edit);
|
||||
m_toolbar->addAction(&m_window->new_tab_action());
|
||||
m_toolbar->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
|
||||
m_hamburger_button_action = m_toolbar->addWidget(m_hamburger_button);
|
||||
m_toolbar->setIconSize({ 16, 16 });
|
||||
// This is a little awkward, but without this Qt shrinks the button to the size of the icon.
|
||||
|
|
Loading…
Reference in a new issue