bug#90711

This commit is contained in:
renpeijia 2021-12-09 11:16:59 +08:00
parent eea3d45d07
commit e78d4aa53b
1 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,13 @@ void TabPage::initUI()
m_deviceLabel->setText(tr("Current Device")); m_deviceLabel->setText(tr("Current Device"));
m_deviceComboBox = new QComboBox(m_deviceFrame); m_deviceComboBox = new QComboBox(m_deviceFrame);
m_deviceComboBox->setFixedWidth(DEVICE_COMBOBOX_WIDTH); m_deviceComboBox->setFixedWidth(DEVICE_COMBOBOX_WIDTH);
if (m_deviceComboBox->view()) {
QPalette view_pal = m_deviceComboBox->view()->palette();
QColor view_color = m_deviceComboBox->palette().color(QPalette::Active, QPalette::Button);
view_pal.setColor(QPalette::Base, view_color);
m_deviceComboBox->setPalette(view_pal);
m_deviceComboBox->view()->setPalette(view_pal);
}
m_tipsLabel = new QLabel(m_deviceFrame); m_tipsLabel = new QLabel(m_deviceFrame);
m_tipsLabel->setText(tr("Devices Closed!")); m_tipsLabel->setText(tr("Devices Closed!"));
m_deviceLayout->addWidget(m_deviceLabel); m_deviceLayout->addWidget(m_deviceLabel);