mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-30 14:54:13 +02:00
Drop hardcoded light-gray background on disabled PLC-IO type combo
masterpropertieswidget.cpp set an inline "background-color: #f0f0f0" stylesheet on the disabled type combo box in the PLC master I/O table. Qt already renders disabled widgets correctly without help; the hardcoded light color just breaks under a dark palette, showing a bright box in an otherwise dark dialog. Dropping the stylesheet lets it render like every other disabled widget in the app.
This commit is contained in:
@@ -605,7 +605,6 @@ void MasterPropertiesWidget::updateUi()
|
||||
// Type combo (read-only — type is defined in the editor)
|
||||
auto *type_cb = new QComboBox(m_plc_table);
|
||||
type_cb->setEnabled(false);
|
||||
type_cb->setStyleSheet("QComboBox { background-color: #f0f0f0; }");
|
||||
QStringList plc_types = ElementData::plcIOTypeList();
|
||||
for (int t = 0; t < plc_types.size(); ++t) {
|
||||
type_cb->addItem(plc_types.at(t), t);
|
||||
|
||||
Reference in New Issue
Block a user