27 enum BackgroundStyle {
33 explicit SettingsGroup(QFrame *parent =
nullptr, BackgroundStyle bgStyle = ItemBackground);
34 explicit SettingsGroup(
const QString &title, QFrame *parent =
nullptr);
38 void setHeaderVisible(
const bool visible);
41 void insertWidget(QWidget *widget);
44 void appendItem(
SettingsItem *item, BackgroundStyle bgStyle);
47 void setSpacing(
const int spacing);
49 int itemCount()
const;
51 QVBoxLayout *getLayout()
const {
return m_layout; }
53 void setBackgroundStyle(BackgroundStyle bgStyle);
54 BackgroundStyle backgroundStyle()
const {
return m_bgStyle; }
57 void resizeEvent(QResizeEvent *event)
override;
59 BackgroundStyle m_bgStyle{ItemBackground};
60 QVBoxLayout *m_layout;
62 DTK_WIDGET_NAMESPACE::DBackgroundGroup *m_bggroup{
nullptr};