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;
endResetModel();
Q_EMIT countChanged();
}
void QuickSettingsModel::availabilityChanged()
@ -122,4 +123,6 @@ void QuickSettingsModel::availabilityChanged()
endRemoveRows();
}
}
Q_EMIT countChanged();
}

View file

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