|
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 |
otherStyles.remove(otherStyles.find("Qt")); |
| 240 |
installed = !otherStyles.empty(); |
240 |
installed = !otherStyles.empty(); |
| 241 |
} |
241 |
if(installed) { |
| 242 |
if(installed) { |
242 |
widget->styleBox->insertStringList(otherStyles); |
| 243 |
widget->styleBox->insertStringList(otherStyles); |
243 |
} |
| 244 |
} |
244 |
} |
| 245 |
widget->styleKde->setEnabled(installed); |
245 |
widget->styleKde->setEnabled(installed); |
| 246 |
widget->styleBox->setEnabled(installed); |
246 |
widget->styleBox->setEnabled(installed); |
|
Lines 269-281
void KcmGtk::getInstalledThemes()
Link Here
|
| 269 |
|
269 |
|
| 270 |
bool gtk3installed = false; |
270 |
bool gtk3installed = false; |
| 271 |
widget->styleBox3->clear(); |
271 |
widget->styleBox3->clear(); |
| 272 |
TQStringList otherGtk3Styles = gtk3Themes.keys(); |
272 |
if(!gtk3Themes.empty()) { |
| 273 |
if(!otherGtk3Styles.empty()) { |
273 |
TQStringList otherGtk3Styles = gtk3Themes.keys(); |
| 274 |
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk")); |
274 |
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk")); |
| 275 |
gtk3installed = !otherGtk3Styles.empty(); |
275 |
gtk3installed = !otherGtk3Styles.empty(); |
| 276 |
} |
276 |
if(gtk3installed) { |
| 277 |
if(gtk3installed) { |
277 |
widget->styleBox3->insertStringList(otherGtk3Styles); |
| 278 |
widget->styleBox3->insertStringList(otherGtk3Styles); |
278 |
} |
| 279 |
} |
279 |
} |
| 280 |
widget->styleKde3->setEnabled(gtk3installed); |
280 |
widget->styleKde3->setEnabled(gtk3installed); |
| 281 |
widget->styleBox3->setEnabled(gtk3installed); |
281 |
widget->styleBox3->setEnabled(gtk3installed); |