summaryrefslogtreecommitdiff
path: root/Applications/About/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-24 16:32:20 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-24 16:32:20 +0200
commit21c56477b046a7e22c8cd7c675b9459ee794df43 (patch)
treeb84b41dd6286480b35a559f5ec189629d3655430 /Applications/About/main.cpp
parentabbcdba72e63f223c4207242f6d776abb6fdaa8b (diff)
downloadserenity-21c56477b046a7e22c8cd7c675b9459ee794df43.zip
LibGUI: Add a GAbstractButton base class for button widgets.
This patch moves GButton and GRadioButton to inherit from it. This allows them to share code for mouse event handling, etc.
Diffstat (limited to 'Applications/About/main.cpp')
-rw-r--r--Applications/About/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/About/main.cpp b/Applications/About/main.cpp
index 5bafc60c0e..e05fd3a7fc 100644
--- a/Applications/About/main.cpp
+++ b/Applications/About/main.cpp
@@ -46,7 +46,7 @@ int main(int argc, char** argv)
version_label->set_preferred_size({ 0, 11 });
auto* quit_button = new GButton(widget);
- quit_button->set_caption("Okay");
+ quit_button->set_text("Okay");
quit_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
quit_button->set_preferred_size({ 100, 20 });
quit_button->on_click = [] (GButton&) {