diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 15:07:24 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 15:25:08 +0200 |
commit | bce58bbbca6086270e74b32ee63435ca7bf2b0fb (patch) | |
tree | 359294e05e3d98420ffca3547ccbae4337efa219 /Demos/WidgetGallery | |
parent | 4616a13e94a78ae4363428ce5c525685ef1c2b45 (diff) | |
download | serenity-bce58bbbca6086270e74b32ee63435ca7bf2b0fb.zip |
LibGUI: Convert GScrollBar to ObjectPtr
Diffstat (limited to 'Demos/WidgetGallery')
-rwxr-xr-x | Demos/WidgetGallery/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp index 5e08783485..0e1c8c89c8 100755 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -86,13 +86,13 @@ int main(int argc, char** argv) slider3->set_max(5); slider3->set_knob_size_mode(GSlider::KnobSizeMode::Proportional); - auto* scrollbar1 = new GScrollBar(Orientation::Horizontal, main_widget); + auto scrollbar1 = GScrollBar::construct(Orientation::Horizontal, main_widget); scrollbar1->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); scrollbar1->set_preferred_size(0, 16); scrollbar1->set_min(0); scrollbar1->set_max(100); scrollbar1->set_value(50); - auto* scrollbar2 = new GScrollBar(Orientation::Horizontal, main_widget); + auto scrollbar2 = GScrollBar::construct(Orientation::Horizontal, main_widget); scrollbar2->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); scrollbar2->set_preferred_size(0, 16); scrollbar2->set_enabled(false); |