- Timestamp:
- Mar 26, 2009 10:34:25 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProgressDialog.h
r18299 r18300 62 62 virtual void closeEvent (QCloseEvent *aEvent); 63 63 64 private slots: 65 void cancelOperation(); 66 64 67 private: 65 68 /* Private member vars */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProgressDialog.cpp
r18299 r18300 66 66 mCancelEnabled = aProgress.GetCancelable(); 67 67 if (mCancelEnabled) 68 { 68 69 setCancelButtonText(tr ("&Cancel")); 70 connect (this, SIGNAL (canceled()), 71 this, SLOT (cancelOperation())); 72 } 69 73 } 70 74 … … 89 93 } 90 94 95 void VBoxProgressDialog::cancelOperation() 96 { 97 mProgress.Cancel(); 98 } 99 91 100 void VBoxProgressDialog::timerEvent (QTimerEvent * /* aEvent */) 92 101 { 93 if (!mEnded && (!mProgress.isOk() || mProgress.GetCompleted() ))102 if (!mEnded && (!mProgress.isOk() || mProgress.GetCompleted() || mProgress.GetCanceled())) 94 103 { 95 104 /* Progress finished */
Note:
See TracChangeset
for help on using the changeset viewer.