1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18: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

@ -30,6 +30,8 @@
namespace GUI {
class ControlBoxButton;
class SpinBox : public Widget {
C_OBJECT(SpinBox)
public:
@ -55,8 +57,8 @@ protected:
private:
RefPtr<TextEditor> m_editor;
RefPtr<Button> m_increment_button;
RefPtr<Button> m_decrement_button;
RefPtr<ControlBoxButton> m_increment_button;
RefPtr<ControlBoxButton> m_decrement_button;
int m_min { 0 };
int m_max { 100 };