Changeset 1447 in ntrip


Ignore:
Timestamp:
Jan 6, 2009, 2:58:45 PM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1446 r1447  
    581581  connect(_corrPathLineEdit, SIGNAL(textChanged(const QString &)),
    582582          this, SLOT(bncText(const QString &)));
     583  connect(_corrPortLineEdit, SIGNAL(textChanged(const QString &)),
     584          this, SLOT(bncText(const QString &)));
    583585  if (_corrPathLineEdit->text().isEmpty()) {
    584586    _corrIntrComboBox->setStyleSheet("background-color: lightGray");
    585587    _corrPortLineEdit->setStyleSheet("background-color: lightGray");
    586     _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
    587588    _corrIntrComboBox->setEnabled(false);
    588589    _corrPortLineEdit->setEnabled(false);
     590  }
     591  if (_corrPortLineEdit->text().isEmpty()) {
     592    _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
    589593    _corrTimeSpinBox->setEnabled(false);
    590594  }
     
    12431247  if (aogroup->currentIndex() == 4) {
    12441248    if (!isEmpty) {
     1249      if (!_corrPathLineEdit->text().isEmpty()) {
     1250      _corrIntrComboBox->setStyleSheet("background-color: white");
    12451251      _corrPortLineEdit->setStyleSheet("background-color: white");
     1252      _corrIntrComboBox->setEnabled(true);
     1253      _corrPortLineEdit->setEnabled(true);
     1254      }
     1255      if (!_corrPortLineEdit->text().isEmpty()) {
    12461256      _corrTimeSpinBox->setStyleSheet("background-color: white");
    1247       _corrIntrComboBox->setStyleSheet("background-color: white");
    1248       _corrPortLineEdit->setEnabled(true);
    12491257      _corrTimeSpinBox->setEnabled(true);
    1250       _corrIntrComboBox->setEnabled(true);
     1258      }
    12511259    } else {
     1260      if (_corrPathLineEdit->text().isEmpty()) {
     1261      _corrIntrComboBox->setStyleSheet("background-color: lightGray");
    12521262      _corrPortLineEdit->setStyleSheet("background-color: lightGray");
    12531263      _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
    1254       _corrIntrComboBox->setStyleSheet("background-color: lightGray");
     1264      _corrIntrComboBox->setEnabled(false);
    12551265      _corrPortLineEdit->setEnabled(false);
    12561266      _corrTimeSpinBox->setEnabled(false);
    1257       _corrIntrComboBox->setEnabled(false);
     1267      }
     1268      if (_corrPortLineEdit->text().isEmpty()) {
     1269      _corrTimeSpinBox->setStyleSheet("background-color: lightGray");
     1270      _corrTimeSpinBox->setEnabled(false);
     1271      }
    12581272    }
    12591273  }
Note: See TracChangeset for help on using the changeset viewer.