Changeset View
Changeset View
Standalone View
Standalone View
app/SettingsBase.cpp
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | 175 | { | |||
---|---|---|---|---|---|
187 | foreach( BaseMode * mode, possibleViews ) { | 187 | foreach( BaseMode * mode, possibleViews ) { | ||
188 | mode->addConfiguration( configDialog ); | 188 | mode->addConfiguration( configDialog ); | ||
189 | QRadioButton * radioButton = new QRadioButton( mode->service()->name(), configWidget.GbViewStyle ); | 189 | QRadioButton * radioButton = new QRadioButton( mode->service()->name(), configWidget.GbViewStyle ); | ||
190 | radioButton->setIcon( QIcon::fromTheme(mode->service()->icon()) ); | 190 | radioButton->setIcon( QIcon::fromTheme(mode->service()->icon()) ); | ||
191 | configLayout->addWidget( radioButton ); | 191 | configLayout->addWidget( radioButton ); | ||
192 | viewSelection.addButton( radioButton, possibleViews.values().indexOf(mode) ); | 192 | viewSelection.addButton( radioButton, possibleViews.values().indexOf(mode) ); | ||
193 | } | 193 | } | ||
194 | configWidget.GbViewStyle->setLayout( configLayout ); | 194 | configWidget.GbViewStyle->setLayout( configLayout ); | ||
195 | configWidget.GbViewStyle->setVisible( possibleViews.count() > 1 ); | ||||
195 | KWindowConfig::restoreWindowSize(configDialog->windowHandle(), KSharedConfig::openConfig()->group("ConfigDialog")); | 196 | KWindowConfig::restoreWindowSize(configDialog->windowHandle(), KSharedConfig::openConfig()->group("ConfigDialog")); | ||
196 | connect(configDialog, &KConfigDialog::accepted, this, &SettingsBase::configUpdated); | 197 | connect(configDialog, &KConfigDialog::accepted, this, &SettingsBase::configUpdated); | ||
197 | } | 198 | } | ||
198 | 199 | | |||
199 | 200 | | |||
200 | void SettingsBase::initMenuList(MenuItem * parent) | 201 | void SettingsBase::initMenuList(MenuItem * parent) | ||
201 | { | 202 | { | ||
202 | // look for any categories inside this level, and recurse into them | 203 | // look for any categories inside this level, and recurse into them | ||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |