Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooser.cpp
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Line(s) | 190 | void ComponentChooser::slotServiceSelected(QListWidgetItem* it) { | |||
---|---|---|---|---|---|
198 | 198 | | |||
199 | ComponentDescription->setText(cfg.group(QByteArray()).readEntry("Comment",i18n("No description available"))); | 199 | ComponentDescription->setText(cfg.group(QByteArray()).readEntry("Comment",i18n("No description available"))); | ||
200 | ComponentDescription->setMinimumSize(ComponentDescription->sizeHint()); | 200 | ComponentDescription->setMinimumSize(ComponentDescription->sizeHint()); | ||
201 | 201 | | |||
202 | configWidget = configWidgetMap.value(service); | 202 | configWidget = configWidgetMap.value(service); | ||
203 | if (configWidget) { | 203 | if (configWidget) { | ||
204 | configContainer->setCurrentWidget(configWidget); | 204 | configContainer->setCurrentWidget(configWidget); | ||
205 | const auto plugin = dynamic_cast<CfgPlugin*>(configWidget); | 205 | const auto plugin = dynamic_cast<CfgPlugin*>(configWidget); | ||
206 | headerGroupBox->setTitle(it->text()); | ||||
206 | plugin->load(&cfg); | 207 | plugin->load(&cfg); | ||
207 | emit defaulted(plugin->isDefaults()); | 208 | emit defaulted(plugin->isDefaults()); | ||
208 | } | 209 | } | ||
209 | 210 | | |||
210 | emitChanged(false); | 211 | emitChanged(false); | ||
211 | latestEditedService = service; | 212 | latestEditedService = service; | ||
212 | } | 213 | } | ||
213 | 214 | | |||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |