- Timestamp:
- Jan 6, 2009, 2:58:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r1446 r1447 581 581 connect(_corrPathLineEdit, SIGNAL(textChanged(const QString &)), 582 582 this, SLOT(bncText(const QString &))); 583 connect(_corrPortLineEdit, SIGNAL(textChanged(const QString &)), 584 this, SLOT(bncText(const QString &))); 583 585 if (_corrPathLineEdit->text().isEmpty()) { 584 586 _corrIntrComboBox->setStyleSheet("background-color: lightGray"); 585 587 _corrPortLineEdit->setStyleSheet("background-color: lightGray"); 586 _corrTimeSpinBox->setStyleSheet("background-color: lightGray");587 588 _corrIntrComboBox->setEnabled(false); 588 589 _corrPortLineEdit->setEnabled(false); 590 } 591 if (_corrPortLineEdit->text().isEmpty()) { 592 _corrTimeSpinBox->setStyleSheet("background-color: lightGray"); 589 593 _corrTimeSpinBox->setEnabled(false); 590 594 } … … 1243 1247 if (aogroup->currentIndex() == 4) { 1244 1248 if (!isEmpty) { 1249 if (!_corrPathLineEdit->text().isEmpty()) { 1250 _corrIntrComboBox->setStyleSheet("background-color: white"); 1245 1251 _corrPortLineEdit->setStyleSheet("background-color: white"); 1252 _corrIntrComboBox->setEnabled(true); 1253 _corrPortLineEdit->setEnabled(true); 1254 } 1255 if (!_corrPortLineEdit->text().isEmpty()) { 1246 1256 _corrTimeSpinBox->setStyleSheet("background-color: white"); 1247 _corrIntrComboBox->setStyleSheet("background-color: white");1248 _corrPortLineEdit->setEnabled(true);1249 1257 _corrTimeSpinBox->setEnabled(true); 1250 _corrIntrComboBox->setEnabled(true);1258 } 1251 1259 } else { 1260 if (_corrPathLineEdit->text().isEmpty()) { 1261 _corrIntrComboBox->setStyleSheet("background-color: lightGray"); 1252 1262 _corrPortLineEdit->setStyleSheet("background-color: lightGray"); 1253 1263 _corrTimeSpinBox->setStyleSheet("background-color: lightGray"); 1254 _corrIntrComboBox->set StyleSheet("background-color: lightGray");1264 _corrIntrComboBox->setEnabled(false); 1255 1265 _corrPortLineEdit->setEnabled(false); 1256 1266 _corrTimeSpinBox->setEnabled(false); 1257 _corrIntrComboBox->setEnabled(false); 1267 } 1268 if (_corrPortLineEdit->text().isEmpty()) { 1269 _corrTimeSpinBox->setStyleSheet("background-color: lightGray"); 1270 _corrTimeSpinBox->setEnabled(false); 1271 } 1258 1272 } 1259 1273 }
Note:
See TracChangeset
for help on using the changeset viewer.