Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindesktop/animationsmodel.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | |||||
75 | bool AnimationsModel::shouldStore(const EffectData &data) const | 75 | bool AnimationsModel::shouldStore(const EffectData &data) const | ||
76 | { | 76 | { | ||
77 | return data.untranslatedCategory.contains( | 77 | return data.untranslatedCategory.contains( | ||
78 | QStringLiteral("Virtual Desktop Switching Animation"), Qt::CaseInsensitive); | 78 | QStringLiteral("Virtual Desktop Switching Animation"), Qt::CaseInsensitive); | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | EffectModel::Status AnimationsModel::status(int row) const | 81 | EffectModel::Status AnimationsModel::status(int row) const | ||
82 | { | 82 | { | ||
83 | return Status(data(index(row, 0), static_cast<int>(EffectStatusRole)).toInt()); | 83 | return Status(data(index(row, 0), static_cast<int>(StatusRole)).toInt()); | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | bool AnimationsModel::modelCurrentEnabled() const | 86 | bool AnimationsModel::modelCurrentEnabled() const | ||
87 | { | 87 | { | ||
88 | for (int i = 0; i < rowCount(); ++i) { | 88 | for (int i = 0; i < rowCount(); ++i) { | ||
89 | if (status(i) != Status::Disabled) { | 89 | if (status(i) != Status::Disabled) { | ||
90 | return true; | 90 | return true; | ||
91 | } | 91 | } | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |