Changeset 71578 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 29, 2018 5:32:09 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp
r70882 r71578 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 68 68 UIProgressEventHandler(QObject *pParent, const CProgress &comProgress); 69 69 /** Destructs event proxy object. */ 70 ~UIProgressEventHandler();70 virtual ~UIProgressEventHandler() /* override */; 71 71 72 72 protected: … … 92 92 93 93 /** Holds the progress wrapper. */ 94 CProgress m_comProgress;94 CProgress m_comProgress; 95 95 96 96 /** Holds the Qt event listener instance. */ 97 ComObjPtr<UIMainEventListenerImpl> m_pQtListener;97 ComObjPtr<UIMainEventListenerImpl> m_pQtListener; 98 98 /** Holds the COM event listener instance. */ 99 CEventListener m_comEventListener;99 CEventListener m_comEventListener; 100 100 }; 101 101 … … 207 207 const char *UIProgressDialog::m_spcszOpDescTpl = "%1 ... (%2/%3)"; 208 208 209 UIProgressDialog::UIProgressDialog(CProgress & progress,209 UIProgressDialog::UIProgressDialog(CProgress &comProgress, 210 210 const QString &strTitle, 211 211 QPixmap *pImage /* = 0 */, … … 213 213 QWidget *pParent /* = 0 */) 214 214 : QIWithRetranslateUI2<QIDialog>(pParent, Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint) 215 , m_comProgress( progress)215 , m_comProgress(comProgress) 216 216 , m_strTitle(strTitle) 217 217 , m_pImage(pImage) … … 317 317 } 318 318 319 void UIProgressDialog::timerEvent(QTimerEvent *)319 void UIProgressDialog::timerEvent(QTimerEvent *) 320 320 { 321 321 /* Call the timer event handling delegate: */ … … 331 331 } 332 332 333 void UIProgressDialog::sltHandleProgressPercentageChange(QString /* strProgressId */, int iPercent)333 void UIProgressDialog::sltHandleProgressPercentageChange(QString, int iPercent) 334 334 { 335 335 /* New mode only: */ … … 341 341 } 342 342 343 void UIProgressDialog::sltHandleProgressTaskComplete(QString /* strProgressId */)343 void UIProgressDialog::sltHandleProgressTaskComplete(QString) 344 344 { 345 345 /* New mode only: */ … … 692 692 *********************************************************************************************************************************/ 693 693 694 UIProgress::UIProgress(CProgress & progress, QObject *pParent /* = 0 */)694 UIProgress::UIProgress(CProgress &comProgress, QObject *pParent /* = 0 */) 695 695 : QObject(pParent) 696 , m_comProgress( progress)696 , m_comProgress(comProgress) 697 697 , m_cOperations(m_comProgress.GetOperationCount()) 698 698 , m_fEnded(false) … … 732 732 } 733 733 734 void UIProgress::timerEvent(QTimerEvent *)734 void UIProgress::timerEvent(QTimerEvent *) 735 735 { 736 736 /* Make sure the UIProgress still 'running': */ … … 765 765 } 766 766 767 767 768 #include "UIProgressDialog.moc" 769 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.h
r69006 r71578 5 5 6 6 /* 7 * Copyright (C) 2009-201 7Oracle Corporation7 * Copyright (C) 2009-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 211 211 212 212 /** Holds the personal event-loop instance. */ 213 QPointer<QEventLoop> m_pEventLoop;213 QPointer<QEventLoop> m_pEventLoop; 214 214 }; 215 215 216 216 217 #endif /* !___UIProgressDialog_h___ */ 217 218
Note:
See TracChangeset
for help on using the changeset viewer.