Changeset 90254 in vbox for trunk/src/VBox
- Timestamp:
- Jul 20, 2021 10:54:00 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIProgressTask.cpp
r90253 r90254 81 81 { 82 82 /* Setup connections: */ 83 connect(m_pProgressObject.data(), &UIProgressObject::sigProgressChange, 84 this, &UIProgressTask::sltHandleProgressChange); 83 85 connect(m_pProgressObject.data(), &UIProgressObject::sigProgressEventHandlingFinished, 84 86 this, &UIProgressTask::sltHandleProgressEventHandlingFinished); … … 94 96 if (m_pProgressObject) 95 97 m_pProgressObject->cancel(); 98 } 99 100 void UIProgressTask::sltHandleProgressChange(ulong /*uOperations*/, QString /*strOperation*/, 101 ulong /*uOperation*/, ulong uPercent) 102 { 103 /* Notify external listeners: */ 104 emit sigProgressChange(uPercent); 96 105 } 97 106 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIProgressTask.h
r90253 r90254 46 46 /** Notifies listeners about progress has started. */ 47 47 void sigProgressStarted(); 48 /** Notifies listeners about progress has changed. 49 * @param uPercent Brings the progress percentage. */ 50 void sigProgressChange(ulong uPercent); 48 51 /** Notifies listeners about progress has finished. */ 49 52 void sigProgressFinished(); … … 85 88 private slots: 86 89 90 /** Handles progress change. 91 * @param iOperations Brings the number of operations CProgress have. 92 * @param strOperation Brings the description of the current CProgress operation. 93 * @param iOperation Brings the index of the current CProgress operation. 94 * @param iPercent Brings the percentage of the current CProgress operation. */ 95 void sltHandleProgressChange(ulong uOperations, QString strOperation, 96 ulong uOperation, ulong uPercent); 87 97 /** Handles progress event handling finished signal. */ 88 98 void sltHandleProgressEventHandlingFinished();
Note:
See TracChangeset
for help on using the changeset viewer.