ui->qlv_availableSignals->setSizeAdjustPolicy(QListView::AdjustToContents);
/* Make the background of availableSignals view the same color as the widget base */
- QPalette oldPalette(ui->qlv_availableSignals->palette());
- QPalette newPalette(oldPalette);
- newPalette.setColor(QPalette::Inactive, QPalette::Base, oldPalette.color(QPalette::Disabled, QPalette::Base));
- newPalette.setColor(QPalette::Active, QPalette::Base, oldPalette.color(QPalette::Disabled, QPalette::Base));
+ QPalette widgetPalette(this->palette());
+ QPalette newPalette(ui->qlv_availableSignals->palette());
+ newPalette.setColor(QPalette::Disabled, QPalette::Base, widgetPalette.color(QPalette::Disabled, QPalette::Window));
+ newPalette.setColor(QPalette::Inactive, QPalette::Base, widgetPalette.color(QPalette::Inactive, QPalette::Window));
+ newPalette.setColor(QPalette::Active, QPalette::Base, widgetPalette.color(QPalette::Active, QPalette::Window));
ui->qlv_availableSignals->setPalette(newPalette);
connect(ui->qpb_browse, SIGNAL(clicked()), this, SLOT(onBrowseClicked()));