mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:47:44 +00:00
Ladybird/Qt: Display drown-down settings using QPushButton
The default behavior of QPushButton is much closer to what we want from a drop-down menu, as shown in the QPushButton::setMenu documentation: https://doc.qt.io/qt-6/qpushbutton.html#setMenu This also results in much less of a "squished" look than before.
This commit is contained in:
parent
63577e8d1c
commit
e7d977f58d
2 changed files with 6 additions and 7 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <QLineEdit>
|
||||
#include <QMainWindow>
|
||||
#include <QPushButton>
|
||||
#include <QToolButton>
|
||||
|
||||
#pragma once
|
||||
|
||||
|
@ -30,9 +29,9 @@ private:
|
|||
QMainWindow* m_window { nullptr };
|
||||
OwnPtr<QLineEdit> m_new_tab_page;
|
||||
OwnPtr<QCheckBox> m_enable_search;
|
||||
OwnPtr<QToolButton> m_search_engine_dropdown;
|
||||
OwnPtr<QPushButton> m_search_engine_dropdown;
|
||||
OwnPtr<QCheckBox> m_enable_autocomplete;
|
||||
OwnPtr<QToolButton> m_autocomplete_engine_dropdown;
|
||||
OwnPtr<QPushButton> m_autocomplete_engine_dropdown;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue