| 34 | } |
| 35 | |
| 36 | void ConfigPage::apply() |
| 37 | { |
| 38 | Q_D(ConfigPage); |
| 39 | |
| 40 | // if d->configManager is null, this method must be overridden |
| 41 | Q_ASSERT_X(d->configManager, metaObject()->className(), |
| 42 | "Config page does not use a KConfigSkeleton, but doesn't override apply()"); |
| 43 | |
| 44 | QSignalBlocker blockSigs(this); // we don't want to emit changed() while calling apply() |
| 45 | d->configManager->updateSettings(); |
| 46 | d->configSkeleton->load(); |
| 47 | d->configManager->updateWidgets(); |
| 48 | } |
| 49 | |
| 50 | void ConfigPage::defaults() |
| 51 | { |
nothing calls this directly
no test coverage detected