[kcmkwin/compositing] Remove dead window management special case code
This commit is contained in:
parent
3420ab17bb
commit
a29289ccb3
2 changed files with 0 additions and 14 deletions
|
@ -202,11 +202,6 @@ bool EffectModel::setData(const QModelIndex& index, const QVariant& value, int r
|
|||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
} else if (role == EffectModel::WindowManagementRole) {
|
||||
bool enabled = value.toBool();
|
||||
handleWindowManagement(index.row(), enabled);
|
||||
emit dataChanged(index, index);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -333,13 +328,6 @@ void EffectModel::loadEffects()
|
|||
endResetModel();
|
||||
}
|
||||
|
||||
void EffectModel::handleWindowManagement(int row, bool enabled)
|
||||
{
|
||||
//Make sure that our row is valid
|
||||
if (m_effectsList.size() > 0 && row <= m_effectsList.size())
|
||||
m_effectsList[row].effectStatus = enabled;
|
||||
}
|
||||
|
||||
int EffectModel::findRowByServiceName(const QString &serviceName)
|
||||
{
|
||||
for (int it = 0; it < m_effectsList.size(); it++) {
|
||||
|
|
|
@ -69,7 +69,6 @@ public:
|
|||
CategoryRole,
|
||||
ServiceNameRole,
|
||||
EffectStatusRole,
|
||||
WindowManagementRole,
|
||||
VideoRole,
|
||||
SupportedRole,
|
||||
ExclusiveRole,
|
||||
|
@ -97,7 +96,6 @@ public:
|
|||
void defaults();
|
||||
|
||||
private:
|
||||
void handleWindowManagement(int row, bool enabled);
|
||||
int findRowByServiceName(const QString &serviceName);
|
||||
QList<EffectData> m_effectsList;
|
||||
QList<EffectData> m_effectsChanged;
|
||||
|
|
Loading…
Reference in a new issue