Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezestyle.cpp
Context not available. | |||||
1382 | // load helper configuration | 1382 | // load helper configuration | ||
---|---|---|---|---|---|
1383 | _helper->loadConfig(); | 1383 | _helper->loadConfig(); | ||
1384 | 1384 | | |||
1385 | // Load global animation settings | ||||
1386 | KSharedConfig::Ptr config = KSharedConfig::openConfig(); | ||||
1387 | const KConfigGroup cg(config, QStringLiteral("KDE")); | ||||
1388 | | ||||
1389 | const int animationsDuration = cg.readEntry("AnimationDurationFactor", StyleConfigData::animationsDuration() / 100.0f) * 100; | ||||
1390 | if (animationsDuration > 0) { | ||||
1391 | StyleConfigData::setAnimationsDuration(animationsDuration); | ||||
1392 | StyleConfigData::setAnimationsEnabled(true); | ||||
1393 | } else { | ||||
1394 | StyleConfigData::setAnimationsEnabled(false); | ||||
1395 | } | ||||
1396 | | ||||
1385 | // reinitialize engines | 1397 | // reinitialize engines | ||
1386 | _animations->setupEngines(); | 1398 | _animations->setupEngines(); | ||
1387 | _windowManager->initialize(); | 1399 | _windowManager->initialize(); | ||
Context not available. |