From 21c56477b046a7e22c8cd7c675b9459ee794df43 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 24 May 2019 16:32:20 +0200 Subject: 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. --- Applications/About/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Applications/About/main.cpp') 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&) { -- cgit v1.2.3