1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

LibGUI: Use ControlBoxButtons in SpinBox and ComboBox

Converts the buttons of these widgets into ControlBoxButtons.
This commit is contained in:
thankyouverycool 2020-07-19 10:23:12 -04:00 committed by Andreas Kling
parent bf59cd7ca5
commit c90fe7ce93
4 changed files with 12 additions and 11 deletions

View file

@ -31,6 +31,7 @@
namespace GUI {
class ComboBoxEditor;
class ControlBoxButton;
class ComboBox : public Widget {
C_OBJECT(ComboBox)
@ -65,7 +66,7 @@ protected:
private:
RefPtr<ComboBoxEditor> m_editor;
RefPtr<Button> m_open_button;
RefPtr<ControlBoxButton> m_open_button;
RefPtr<Window> m_list_window;
RefPtr<ListView> m_list_view;
bool m_only_allow_values_from_model { false };