- Timestamp:
- Jan 22, 2012, 6:35:30 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3628 r3629 71 71 for (int ii = 1; ii < MAXI; ii++) { 72 72 cout << "ii = " << ii << endl; 73 emit progress(float(ii)/float(MAXI)); 73 74 sleep(1); 74 75 } 75 76 76 77 emit finished(); 77 78 78 deleteLater(); 79 79 } -
trunk/BNC/bncpostprocess.h
r3627 r3629 46 46 47 47 signals: 48 void progress(float); 48 49 void finished(); 49 50 -
trunk/BNC/bncwindow.cpp
r3627 r3629 2256 2256 t_postProcessing* postProcessing = new t_postProcessing(this); 2257 2257 connect(postProcessing, SIGNAL(finished()), this, SLOT(slotFinishedPostProcessing())); 2258 connect(postProcessing, SIGNAL(progress(float)), this, SLOT(slotPostProgress(float))); 2258 2259 2259 2260 postProcessing->start(); … … 2272 2273 // Progress Bar Change 2273 2274 //////////////////////////////////////////////////////////////////////////// 2274 void bncWindow::postProgress(float progress) { 2275 void bncWindow::slotPostProgress(float progress) { 2276 cout << "slotPostProgress" << endl; 2275 2277 if (_postProgressBar) { 2276 2278 _postProgressBar->setValue(int(progress*100.0)); -
trunk/BNC/bncwindow.h
r3626 r3629 62 62 void CreateMenu(); 63 63 void AddToolbar(); 64 void postProgress(float progress);65 64 66 65 public slots: 67 66 void slotMountPointsRead(QList<bncGetThread*>); 68 67 void slotBncTextChanged(); 68 void slotPostProgress(float); 69 69 70 70 private slots:
Note:
See TracChangeset
for help on using the changeset viewer.