mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibGUI: Add autosize to CheckBox
This commit is contained in:
parent
8afe013069
commit
e8c1288e2c
Notes:
sideshowbarker
2024-07-18 20:40:54 +09:00
Author: https://github.com/thankyouverycool
Commit: e8c1288e2c
Pull-request: https://github.com/SerenityOS/serenity/pull/6161
2 changed files with 25 additions and 1 deletions
|
@ -38,14 +38,21 @@ public:
|
|||
|
||||
virtual void click(unsigned modifiers = 0) override;
|
||||
|
||||
bool is_autosize() const { return m_autosize; }
|
||||
void set_autosize(bool);
|
||||
|
||||
private:
|
||||
explicit CheckBox(String = {});
|
||||
|
||||
void size_to_fit();
|
||||
|
||||
// These don't make sense for a check box, so hide them.
|
||||
using AbstractButton::auto_repeat_interval;
|
||||
using AbstractButton::set_auto_repeat_interval;
|
||||
|
||||
virtual void paint_event(PaintEvent&) override;
|
||||
|
||||
bool m_autosize { false };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue