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:
parent
bf59cd7ca5
commit
c90fe7ce93
4 changed files with 12 additions and 11 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue