We don't neeed to reload our model anymore
This commit is contained in:
parent
081d1fc7c9
commit
fcff62c4b6
3 changed files with 0 additions and 13 deletions
|
@ -256,12 +256,6 @@ void EffectModel::syncEffectsToKWin()
|
|||
m_effectsChanged = m_effectsList;
|
||||
}
|
||||
|
||||
void EffectModel::reload()
|
||||
{
|
||||
m_effectsList.clear();
|
||||
loadEffects();
|
||||
}
|
||||
|
||||
void EffectModel::effectStatus(const QModelIndex &rowIndex, bool effectState)
|
||||
{
|
||||
setData(rowIndex, effectState, EffectModel::EffectStatusRole);
|
||||
|
@ -381,10 +375,6 @@ QString EffectFilterModel::findImage(const QString &imagePath, int size)
|
|||
return m_effectModel->findImage(imagePath, size);
|
||||
}
|
||||
|
||||
void EffectFilterModel::reload() {
|
||||
m_effectModel->reload();
|
||||
}
|
||||
|
||||
void EffectFilterModel::syncConfig()
|
||||
{
|
||||
m_effectModel->syncConfig();
|
||||
|
|
|
@ -78,7 +78,6 @@ public:
|
|||
void effectStatus(const QModelIndex &rowIndex, bool effectState);
|
||||
QString findImage(const QString &imagePath, int size = 128);
|
||||
void syncEffectsToKWin();
|
||||
void reload();
|
||||
void syncConfig();
|
||||
void enableWidnowManagement(bool enabled);
|
||||
|
||||
|
@ -115,7 +114,6 @@ public:
|
|||
|
||||
Q_INVOKABLE void effectStatus(int rowIndex, bool effectState);
|
||||
Q_INVOKABLE QString findImage(const QString &imagePath, int size = 128);
|
||||
Q_INVOKABLE void reload();
|
||||
Q_INVOKABLE void syncConfig();
|
||||
Q_INVOKABLE void enableWidnowManagement(bool enabled);
|
||||
|
||||
|
|
|
@ -144,7 +144,6 @@ Item {
|
|||
|
||||
onClicked: {
|
||||
searchModel.syncConfig();
|
||||
searchModel.reload();
|
||||
apply.enabled = false;
|
||||
compositing.syncConfig(openGLType.currentIndex, graphicsSystem.currentIndex);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue