|
Lines 234-246
void KcmGtk::getInstalledThemes()
Link Here
|
| 234 |
|
234 |
|
| 235 |
bool installed = false; |
235 |
bool installed = false; |
| 236 |
widget->styleBox->clear(); |
236 |
widget->styleBox->clear(); |
| 237 |
TQStringList otherStyles = themes.keys(); |
237 |
if(!themes.empty()) { |
| 238 |
if(!otherStyles.empty()) { |
238 |
TQStringList otherStyles = themes.keys(); |
| 239 |
otherStyles.remove(otherStyles.find("Qt")); |
239 |
if(otherStyles.find("Qt")!=otherStyles.end()) { |
|
|
240 |
otherStyles.remove(otherStyles.find("Qt")); |
| 241 |
} |
| 240 |
installed = !otherStyles.empty(); |
242 |
installed = !otherStyles.empty(); |
| 241 |
} |
243 |
if(installed) { |
| 242 |
if(installed) { |
244 |
widget->styleBox->insertStringList(otherStyles); |
| 243 |
widget->styleBox->insertStringList(otherStyles); |
245 |
} |
| 244 |
} |
246 |
} |
| 245 |
widget->styleKde->setEnabled(installed); |
247 |
widget->styleKde->setEnabled(installed); |
| 246 |
widget->styleBox->setEnabled(installed); |
248 |
widget->styleBox->setEnabled(installed); |
|
Lines 269-281
void KcmGtk::getInstalledThemes()
Link Here
|
| 269 |
|
271 |
|
| 270 |
bool gtk3installed = false; |
272 |
bool gtk3installed = false; |
| 271 |
widget->styleBox3->clear(); |
273 |
widget->styleBox3->clear(); |
| 272 |
TQStringList otherGtk3Styles = gtk3Themes.keys(); |
274 |
if(!gtk3Themes.empty()) { |
| 273 |
if(!otherGtk3Styles.empty()) { |
275 |
TQStringList otherGtk3Styles = gtk3Themes.keys(); |
| 274 |
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk")); |
276 |
if(otherGtk3Styles.find("tdegtk")!=otherGtk3Styles.end()) { |
|
|
277 |
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk")); |
| 278 |
} |
| 275 |
gtk3installed = !otherGtk3Styles.empty(); |
279 |
gtk3installed = !otherGtk3Styles.empty(); |
| 276 |
} |
280 |
if(gtk3installed) { |
| 277 |
if(gtk3installed) { |
281 |
widget->styleBox3->insertStringList(otherGtk3Styles); |
| 278 |
widget->styleBox3->insertStringList(otherGtk3Styles); |
282 |
} |
| 279 |
} |
283 |
} |
| 280 |
widget->styleKde3->setEnabled(gtk3installed); |
284 |
widget->styleKde3->setEnabled(gtk3installed); |
| 281 |
widget->styleBox3->setEnabled(gtk3installed); |
285 |
widget->styleBox3->setEnabled(gtk3installed); |