/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include #include #include #include REGISTER_WIDGET(GUI, Statusbar) namespace GUI { Statusbar::Statusbar(int label_count) { set_fixed_height(18); set_layout(); layout()->set_margins(0); layout()->set_spacing(2); m_corner = add(); set_label_count(label_count); REGISTER_STRING_PROPERTY("text", text, set_text); REGISTER_INT_PROPERTY("label_count", label_count, set_label_count); } Statusbar::~Statusbar() { } NonnullRefPtr