Browse Source

.

pull/2/head
Skycoder42 7 years ago
parent
commit
70ec9c9f92
  1. 12
      src/imports/mvvmquick/settingssectionmodel.cpp

12
src/imports/mvvmquick/settingssectionmodel.cpp

@ -10,9 +10,9 @@ const QList<int> SettingsSectionModel::FilterRoles {
}; };
SettingsSectionModel::SettingsSectionModel(QObject *parent) : SettingsSectionModel::SettingsSectionModel(QObject *parent) :
QAbstractListModel{parent}, QAbstractListModel(parent),
_sections{}, _sections(),
_hasSections{false} _hasSections(false)
{} {}
void SettingsSectionModel::setup(const SettingsElements::Setup &setup) void SettingsSectionModel::setup(const SettingsElements::Setup &setup)
@ -97,8 +97,8 @@ bool SettingsSectionModel::hasSections() const
SettingsSectionModel::SectionInfo::SectionInfo(SettingsElements::Section section, SettingsElements::Category category) : SettingsSectionModel::SectionInfo::SectionInfo(SettingsElements::Section section, SettingsElements::Category category) :
Section{section}, Section(section),
category{category} category(category)
{ {
icon = SettingsUiBuilder::svgEscape(icon); icon = SettingsUiBuilder::svgEscape(icon);
category.sections.clear(); category.sections.clear();
@ -106,7 +106,7 @@ SettingsSectionModel::SectionInfo::SectionInfo(SettingsElements::Section section
SettingsSectionModel::SectionInfo::SectionInfo(SettingsElements::Category category) : SettingsSectionModel::SectionInfo::SectionInfo(SettingsElements::Category category) :
Section{category.title, category.icon, category.tooltip, category.sections.first().groups, {}, {}}, Section{category.title, category.icon, category.tooltip, category.sections.first().groups, {}, {}},
category{} category()
{ {
icon = SettingsUiBuilder::svgEscape(icon); icon = SettingsUiBuilder::svgEscape(icon);
} }

Loading…
Cancel
Save