Changeset 5117 in ntrip
- Timestamp:
- Apr 12, 2013, 6:42:41 PM (12 years ago)
- Location:
- trunk/GnssCenter/inpedit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/inpedit/selwin.cpp
r5116 r5117 33 33 layout->addWidget(_lineEdit); 34 34 35 connect(_lineEdit, SIGNAL(text Changed(const QString &)),36 this, SLOT(slotText Changed()));35 connect(_lineEdit, SIGNAL(textEdited(const QString &)), 36 this, SLOT(slotTextEdited())); 37 37 38 38 _button = new QPushButton("...", this); … … 78 78 // 79 79 //////////////////////////////////////////////////////////////////////////////// 80 void t_selWin::slotText Changed() {81 //_fileNames.clear();82 //if (!_lineEdit->text().isEmpty()) {83 //_fileNames << _lineEdit->text();84 //}85 // emit fileNameChanged();80 void t_selWin::slotTextEdited() { 81 _fileNames.clear(); 82 if (!_lineEdit->text().isEmpty()) { 83 _fileNames << _lineEdit->text(); 84 } 85 emit fileNamesChanged(); 86 86 } 87 87 … … 94 94 _fileNames.clear(); 95 95 _fileNames << fileName; 96 emit fileName Changed();96 emit fileNamesChanged(); 97 97 } 98 98 } … … 101 101 if (fileNames.size()) { 102 102 _fileNames = fileNames; 103 emit fileName Changed();103 emit fileNamesChanged(); 104 104 } 105 105 } … … 109 109 _fileNames.clear(); 110 110 _fileNames << dirName; 111 emit fileName Changed();111 emit fileNamesChanged(); 112 112 } 113 113 } -
trunk/GnssCenter/inpedit/selwin.h
r5114 r5117 20 20 21 21 signals: 22 void fileName Changed();22 void fileNamesChanged(); 23 23 24 24 private slots: 25 void slotText Changed();25 void slotTextEdited(); 26 26 void slotChooseFile(); 27 27
Note:
See TracChangeset
for help on using the changeset viewer.