mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 10:55:07 +00:00
LibGUI: Make GCheckBox inherit from GAbstractButton.
This commit is contained in:
parent
21c56477b0
commit
677794f30d
9 changed files with 25 additions and 97 deletions
|
@ -24,7 +24,7 @@ int main(int argc, char** argv)
|
|||
label->set_text("Hello World!");
|
||||
|
||||
auto* button = new GButton(main_widget);
|
||||
button->set_caption("Good-bye");
|
||||
button->set_text("Good-bye");
|
||||
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
button->set_preferred_size({ 0, 20 });
|
||||
button->on_click = [&] (GButton&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue