Remove the enableWindowManagement functionality
It's all dead code as the glue in the view got removed.
This commit is contained in:
parent
7d63ab03bc
commit
f934829e0f
3 changed files with 0 additions and 41 deletions
|
@ -310,25 +310,6 @@ void EffectModel::syncConfig()
|
||||||
syncEffectsToKWin();
|
syncEffectsToKWin();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectModel::enableWidnowManagement(bool enabled)
|
|
||||||
{
|
|
||||||
//Make sure that our effects are being installed properly
|
|
||||||
if (m_effectsList.size() <= 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
int desktopGridRow = findRowByServiceName("kwin4_effect_desktopgrid");
|
|
||||||
const QModelIndex desktopGridIndex = createIndex(desktopGridRow, 0);
|
|
||||||
setData(desktopGridIndex, enabled, EffectModel::WindowManagementRole);
|
|
||||||
|
|
||||||
int dialogParentRow = findRowByServiceName("kwin4_effect_dialogparent");
|
|
||||||
const QModelIndex dialogParentIndex = createIndex(dialogParentRow, 0);
|
|
||||||
setData(dialogParentIndex, enabled, EffectModel::WindowManagementRole);
|
|
||||||
|
|
||||||
int presentWindowsRow = findRowByServiceName("kwin4_effect_presentwindows");
|
|
||||||
const QModelIndex presentWindowsIndex = createIndex(presentWindowsRow, 0);
|
|
||||||
setData(presentWindowsIndex, enabled, EffectModel::WindowManagementRole);
|
|
||||||
}
|
|
||||||
|
|
||||||
void EffectModel::defaults()
|
void EffectModel::defaults()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_effectsList.count(); ++i) {
|
for (int i = 0; i < m_effectsList.count(); ++i) {
|
||||||
|
@ -423,11 +404,6 @@ void EffectFilterModel::syncConfig()
|
||||||
m_effectModel->syncConfig();
|
m_effectModel->syncConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EffectFilterModel::enableWidnowManagement(bool enabled)
|
|
||||||
{
|
|
||||||
m_effectModel->enableWidnowManagement(enabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
void EffectFilterModel::load()
|
void EffectFilterModel::load()
|
||||||
{
|
{
|
||||||
m_effectModel->loadEffects();
|
m_effectModel->loadEffects();
|
||||||
|
|
|
@ -87,7 +87,6 @@ public:
|
||||||
void updateEffectStatus(const QModelIndex &rowIndex, bool effectState);
|
void updateEffectStatus(const QModelIndex &rowIndex, bool effectState);
|
||||||
void syncEffectsToKWin();
|
void syncEffectsToKWin();
|
||||||
void syncConfig();
|
void syncConfig();
|
||||||
void enableWidnowManagement(bool enabled);
|
|
||||||
void loadEffects();
|
void loadEffects();
|
||||||
void defaults();
|
void defaults();
|
||||||
|
|
||||||
|
@ -143,7 +142,6 @@ public:
|
||||||
|
|
||||||
Q_INVOKABLE void updateEffectStatus(int rowIndex, bool effectState);
|
Q_INVOKABLE void updateEffectStatus(int rowIndex, bool effectState);
|
||||||
Q_INVOKABLE void syncConfig();
|
Q_INVOKABLE void syncConfig();
|
||||||
Q_INVOKABLE void enableWidnowManagement(bool enabled);
|
|
||||||
Q_INVOKABLE void load();
|
Q_INVOKABLE void load();
|
||||||
|
|
||||||
QColor backgroundActiveColor() { return KColorScheme(QPalette::Active, KColorScheme::Selection, KSharedConfigPtr(0)).background(KColorScheme::LinkBackground).color(); };
|
QColor backgroundActiveColor() { return KColorScheme(QPalette::Active, KColorScheme::Selection, KSharedConfigPtr(0)).background(KColorScheme::LinkBackground).color(); };
|
||||||
|
|
|
@ -73,22 +73,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
function isWindowManagementEnabled() {
|
|
||||||
if (model.ServiceNameRole == "kwin4_effect_dialogparent") {
|
|
||||||
windowManagementEnabled = effectStatusCheckBox.checked;
|
|
||||||
return windowManagementEnabled = effectStatusCheckBox.checked && windowManagementEnabled;
|
|
||||||
} else if (model.ServiceNameRole == "kwin4_effect_desktopgrid") {
|
|
||||||
windowManagementEnabled = effectStatusCheckBox.checked;
|
|
||||||
return windowManagementEnabled = effectStatusCheckBox.checked && windowManagementEnabled;
|
|
||||||
} else if (model.ServiceNameRole == "kwin4_effect_presentwindows") {
|
|
||||||
windowManagementEnabled = effectStatusCheckBox.checked;
|
|
||||||
return windowManagementEnabled = effectStatusCheckBox.checked && windowManagementEnabled;
|
|
||||||
}
|
|
||||||
return windowManagementEnabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
id: effectStatusCheckBox
|
id: effectStatusCheckBox
|
||||||
property bool windowManagementEnabled;
|
|
||||||
checked: model.EffectStatusRole
|
checked: model.EffectStatusRole
|
||||||
visible: model.ExclusiveRole == ""
|
visible: model.ExclusiveRole == ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue