/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "settings/settings_experimental.h" #include "ui/wrap/vertical_layout.h" #include "ui/widgets/buttons.h" #include "ui/widgets/labels.h" #include "chat_helpers/tabbed_panel.h" #include "lang/lang_keys.h" #include "styles/style_settings.h" #include "styles/style_layers.h" namespace Settings { namespace { void SetupExperimental( not_null controller, not_null container) { AddSkip(container, st::settingsCheckboxesSkip); container->add( object_ptr( container, tr::lng_settings_experimental_about(), st::boxLabel), st::settingsDividerLabelPadding); AddDivider(container); AddSkip(container, st::settingsCheckboxesSkip); } } // namespace Experimental::Experimental( QWidget *parent, not_null controller) : Section(parent) { setupContent(controller); } void Experimental::setupContent( not_null controller) { const auto content = Ui::CreateChild(this); SetupExperimental(controller, content); Ui::ResizeFitChild(this, content); } } // namespace Settings