quicksettings: Fix count property not being updated

Causes the ActionDrawer to have incorrect information when layouting.
This commit is contained in:
Devin Lin 2022-12-10 21:20:22 -05:00
parent bdcbe4d6f7
commit 389ba43b16
2 changed files with 5 additions and 1 deletions

View file

@ -101,6 +101,7 @@ void QuickSettingsModel::loadQuickSettings()
delete c; delete c;
endResetModel(); endResetModel();
Q_EMIT countChanged();
} }
void QuickSettingsModel::availabilityChanged() void QuickSettingsModel::availabilityChanged()
@ -122,4 +123,6 @@ void QuickSettingsModel::availabilityChanged()
endRemoveRows(); endRemoveRows();
} }
} }
Q_EMIT countChanged();
} }

View file

@ -33,7 +33,8 @@ public:
void classBegin() override; void classBegin() override;
void componentComplete() override; void componentComplete() override;
Q_SIGNAL void countChanged(); Q_SIGNALS:
void countChanged();
private: private:
void loadQuickSettings(); void loadQuickSettings();