Changeset 3626 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Jan 22, 2012, 6:16:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3625 r3626 1144 1144 slotGetData(); 1145 1145 } 1146 1147 // Post-Processing Watcher1148 // -----------------------1149 _postWatcher = 0;1150 1146 } 1151 1147 … … 2250 2246 void bncWindow::slotStartPostProcessing() { 2251 2247 2248 _actPostProcessing->setEnabled(false); 2249 2252 2250 slotSaveOptions(); 2253 2251 2254 _actPostProcessing->setEnabled(false);2255 2252 _postProgressBar->reset(); 2256 2253 _postProgressBar->show(); 2257 2254 enableWidget(true, _postProgressLabel); 2258 2255 2259 t_postInput input; 2260 postProcessingInit(input); 2261 2262 _postWatcher = new QFutureWatcher<t_irc>; 2263 connect(_postWatcher, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing())); 2264 2265 _postFuture = QtConcurrent::run(postProcessingRun, input); 2266 _postWatcher->setFuture(_postFuture); 2256 t_postProcessing* postProcessing = new t_postProcessing(this); 2257 connect(postProcessing, SLOT(finished()), this, SIGNAL(slotFinishedPostProcessing)); 2258 2259 postProcessing->start(); 2267 2260 } 2268 2261 … … 2271 2264 void bncWindow::slotFinishedPostProcessing() { 2272 2265 cout << "slotFinishedPostProcessing" << endl; 2273 delete _postWatcher; 2274 _postWatcher = 0; 2266 2275 2267 enableWidget(false, _postProgressLabel); 2276 2268 _postProgressBar->hide(); 2277 2269 _actPostProcessing->setEnabled(true); 2278 2270 } 2271 2272 // Progress Bar Change 2273 //////////////////////////////////////////////////////////////////////////// 2274 void bncWindow::postProgress(float progress) { 2275 if (_postProgressBar) { 2276 _postProgressBar->setValue(int(progress*100.0)); 2277 } 2278 }
Note:
See TracChangeset
for help on using the changeset viewer.