All pastes #784571 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-19 19:17 UTC
rendered paste body
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);
    }
}