Changeset 6764 in ntrip


Ignore:
Timestamp:
Apr 4, 2015, 11:20:17 AM (7 years ago)
Author:
weber
Message:

Documentation completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncwindow.cpp

    r6763 r6764  
    8585#endif
    8686
     87  const static QPalette paletteWhite(QColor(255, 255, 255));
     88  const static QPalette paletteGray(QColor(230, 230, 230));
     89
    8790  _caster    = 0;
    8891  _casterEph = 0;
     
    460463  if (iRow > 0) {
    461464    enableWidget(true, _cmbMethodComboBox);
    462     _cmbMaxresLineEdit->setStyleSheet("background-color: white");
    463     _cmbSamplSpinBox->setStyleSheet("background-color: white");
     465    _cmbMaxresLineEdit->setStyleSheet("background-color: paletteWhite");
     466    _cmbSamplSpinBox->setStyleSheet("background-color: paletteWhite");
    464467    _cmbMaxresLineEdit->setEnabled(true);
    465468    _cmbSamplSpinBox->setEnabled(true);
     
    468471  else {
    469472    enableWidget(false, _cmbMethodComboBox);
    470     _cmbMaxresLineEdit->setStyleSheet("background-color: lightGray");
    471     _cmbSamplSpinBox->setStyleSheet("background-color: lightGray");
     473    _cmbMaxresLineEdit->setStyleSheet("background-color: paletteGray");
     474    _cmbSamplSpinBox->setStyleSheet("background-color: paletteGray");
    472475    _cmbMaxresLineEdit->setEnabled(false);
    473476    _cmbSamplSpinBox->setEnabled(false);
     
    21432146void bncWindow::slotBncTextChanged(){
    21442147
     2148  const static QPalette paletteWhite(QColor(255, 255, 255));
     2149  const static QPalette paletteGray(QColor(230, 230, 230));
     2150
    21452151  bool enable = true;
    21462152
     
    22482254  if (sender() == 0 || sender() == _uploadEphHostLineEdit) {
    22492255    if (!_uploadEphHostLineEdit->text().isEmpty()) {
    2250       _uploadEphPortLineEdit->setStyleSheet("background-color: white");
    2251       _uploadEphMountpointLineEdit->setStyleSheet("background-color: white");
    2252       _uploadEphPasswordLineEdit->setStyleSheet("background-color: white");
    2253       _uploadEphSampleSpinBox->setStyleSheet("background-color: white");
     2256      _uploadEphPortLineEdit->setStyleSheet("background-color: paletteWhite");
     2257      _uploadEphMountpointLineEdit->setStyleSheet("background-color: paletteWhite");
     2258      _uploadEphPasswordLineEdit->setStyleSheet("background-color: paletteWhite");
     2259      _uploadEphSampleSpinBox->setStyleSheet("background-color: paletteWhite");
    22542260      _uploadEphPortLineEdit->setEnabled(true);
    22552261      _uploadEphMountpointLineEdit->setEnabled(true);
     
    22582264    }
    22592265    else {
    2260       _uploadEphPortLineEdit->setStyleSheet("background-color: lightGray");
    2261       _uploadEphMountpointLineEdit->setStyleSheet("background-color: lightGray");
    2262       _uploadEphPasswordLineEdit->setStyleSheet("background-color: lightGray");
    2263       _uploadEphSampleSpinBox->setStyleSheet("background-color: lightGray");
     2266      _uploadEphPortLineEdit->setStyleSheet("background-color: paletteGray");
     2267      _uploadEphMountpointLineEdit->setStyleSheet("background-color: paletteGray");
     2268      _uploadEphPasswordLineEdit->setStyleSheet("background-color: paletteGray");
     2269      _uploadEphSampleSpinBox->setStyleSheet("background-color: paletteGray");
    22642270      _uploadEphPortLineEdit->setEnabled(false);
    22652271      _uploadEphMountpointLineEdit->setEnabled(false);
     
    22752281    if (iRow > 0) {
    22762282      enableWidget(true, _cmbMethodComboBox);
    2277       _cmbMaxresLineEdit->setStyleSheet("background-color: white");
    2278       _cmbSamplSpinBox->setStyleSheet("background-color: white");
     2283      _cmbMaxresLineEdit->setStyleSheet("background-color: paletteWhite");
     2284      _cmbSamplSpinBox->setStyleSheet("background-color: paletteWhite");
    22792285      _cmbMaxresLineEdit->setEnabled(true);
    22802286      _cmbSamplSpinBox->setEnabled(true);
     
    22832289    else {
    22842290      enableWidget(false, _cmbMethodComboBox);
    2285       _cmbMaxresLineEdit->setStyleSheet("background-color: lightGray");
    2286       _cmbSamplSpinBox->setStyleSheet("background-color: lightGray");
     2291      _cmbMaxresLineEdit->setStyleSheet("background-color: paletteGray");
     2292      _cmbSamplSpinBox->setStyleSheet("background-color: paletteGray");
    22872293      _cmbMaxresLineEdit->setEnabled(false);
    22882294      _cmbSamplSpinBox->setEnabled(false);
Note: See TracChangeset for help on using the changeset viewer.