Changeset 5117 in ntrip


Ignore:
Timestamp:
Apr 12, 2013, 6:42:41 PM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/inpedit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/selwin.cpp

    r5116 r5117  
    3333  layout->addWidget(_lineEdit);
    3434
    35   connect(_lineEdit, SIGNAL(textChanged(const QString &)),
    36           this, SLOT(slotTextChanged()));
     35  connect(_lineEdit, SIGNAL(textEdited(const QString &)),
     36          this, SLOT(slotTextEdited()));
    3737
    3838  _button = new QPushButton("...", this);
     
    7878//
    7979////////////////////////////////////////////////////////////////////////////////
    80 void t_selWin::slotTextChanged() {
    81 //  _fileNames.clear();
    82 //  if (!_lineEdit->text().isEmpty()) {
    83 //    _fileNames << _lineEdit->text();
    84 //  }
    85 //  emit fileNameChanged();
     80void t_selWin::slotTextEdited() {
     81  _fileNames.clear();
     82  if (!_lineEdit->text().isEmpty()) {
     83    _fileNames << _lineEdit->text();
     84  }
     85  emit fileNamesChanged();
    8686}
    8787
     
    9494      _fileNames.clear();
    9595      _fileNames << fileName;
    96       emit fileNameChanged();
     96      emit fileNamesChanged();
    9797   }
    9898  }
     
    101101    if (fileNames.size()) {
    102102      _fileNames = fileNames;
    103       emit fileNameChanged();
     103      emit fileNamesChanged();
    104104    }
    105105  }
     
    109109      _fileNames.clear();
    110110      _fileNames << dirName;
    111       emit fileNameChanged();
     111      emit fileNamesChanged();
    112112    }
    113113  }
  • trunk/GnssCenter/inpedit/selwin.h

    r5114 r5117  
    2020
    2121  signals:
    22    void fileNameChanged();
     22   void fileNamesChanged();
    2323
    2424  private slots:
    25    void slotTextChanged();
     25   void slotTextEdited();
    2626   void slotChooseFile();
    2727
Note: See TracChangeset for help on using the changeset viewer.