void OutputDeviceChoice::changeEvent(QEvent *e) { kDebug(); QWidget::changeEvent(e); if (e->type() == QEvent::PaletteChange) { deviceList->viewport()->setPalette(QApplication::palette()); deviceList->setPalette(QApplication::palette()); const QString stylesheet = QString("QListView {" "background-color: palette(base);" "background-image: url(%1);" "background-position: bottom left;" "background-attachment: fixed;" "background-repeat: no-repeat;" "}") .arg(KStandardDirs::locate("data", "kcm_phonon/listview-background.png")); deviceList->setStyleSheet(stylesheet); } }