Changeset 6748 in ntrip
- Timestamp:
- Mar 29, 2015, 10:20:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/pppWidgets.cpp
r6743 r6748 98 98 connect(_dataSource, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(slotEnableWidgets())); 99 99 100 connect(_snxtroFile, SIGNAL(textChanged(const QString &)), 101 this, SLOT(slotPPPTextChanged())); 102 100 103 slotEnableWidgets(); 101 104 … … 352 355 } 353 356 357 if ( _snxtroFile->text() != "" && !allDisabled) { 358 _snxtroSampl->setEnabled(true); 359 } 360 else { 361 _snxtroSampl->setEnabled(false); 362 } 363 354 364 _dataSource->setEnabled(true); 355 365 … … 396 406 } 397 407 408 // PPP Text 409 //////////////////////////////////////////////////////////////////////////// 410 void t_pppWidgets::slotPPPTextChanged(){ 411 412 const static QPalette paletteWhite(QColor(255, 255, 255)); 413 const static QPalette paletteGray(QColor(230, 230, 230)); 414 415 // SNX TRO file sampling 416 // --------------------- 417 if (sender() == 0 || sender() == _snxtroFile) { 418 if ( _snxtroFile->text() != "" ) { 419 _snxtroSampl->setEnabled(true); 420 _snxtroSampl->setPalette(paletteWhite); 421 } 422 else { 423 _snxtroSampl->setEnabled(false); 424 _snxtroSampl->setPalette(paletteGray); 425 } 426 } 427 }
Note:
See TracChangeset
for help on using the changeset viewer.