Changeset View
Changeset View
Standalone View
Standalone View
kdecoration/config/breezeconfigwidget.cpp
Context not available. | |||||
125 | m_internalSettings->setShadowStrength( qRound( qreal(m_ui.shadowStrength->value()*255)/100 ) ); | 125 | m_internalSettings->setShadowStrength( qRound( qreal(m_ui.shadowStrength->value()*255)/100 ) ); | ||
---|---|---|---|---|---|
126 | m_internalSettings->setShadowColor( m_ui.shadowColor->color() ); | 126 | m_internalSettings->setShadowColor( m_ui.shadowColor->color() ); | ||
127 | 127 | | |||
128 | // Store in the global animation settings | ||||
129 | KSharedConfig::Ptr config = KSharedConfig::openConfig(); | ||||
130 | KConfigGroup cg(config, QStringLiteral("KDE")); | ||||
131 | if (m_ui.animationsEnabled->isChecked()) { | ||||
132 | cg.writeEntry("AnimationDurationFactor", float(m_ui.animationsDuration->value()) / m_ui.animationsDuration->maximum()); | ||||
133 | } else { | ||||
134 | cg.writeEntry("AnimationDurationFactor", 0.f); | ||||
135 | } | ||||
136 | | ||||
128 | // save configuration | 137 | // save configuration | ||
129 | m_internalSettings->save(); | 138 | m_internalSettings->save(); | ||
130 | 139 | | |||
Context not available. |