VirtualBox

Changeset 71578 in vbox for trunk/src


Ignore:
Timestamp:
Mar 29, 2018 5:32:09 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Tiny cleanup for UIProgressDialog.

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  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6868    UIProgressEventHandler(QObject *pParent, const CProgress &comProgress);
    6969    /** Destructs event proxy object. */
    70     ~UIProgressEventHandler();
     70    virtual ~UIProgressEventHandler() /* override */;
    7171
    7272protected:
     
    9292
    9393    /** Holds the progress wrapper. */
    94     CProgress m_comProgress;
     94    CProgress  m_comProgress;
    9595
    9696    /** Holds the Qt event listener instance. */
    97     ComObjPtr<UIMainEventListenerImpl> m_pQtListener;
     97    ComObjPtr<UIMainEventListenerImpl>  m_pQtListener;
    9898    /** Holds the COM event listener instance. */
    99     CEventListener m_comEventListener;
     99    CEventListener                      m_comEventListener;
    100100};
    101101
     
    207207const char *UIProgressDialog::m_spcszOpDescTpl = "%1 ... (%2/%3)";
    208208
    209 UIProgressDialog::UIProgressDialog(CProgress &progress,
     209UIProgressDialog::UIProgressDialog(CProgress &comProgress,
    210210                                   const QString &strTitle,
    211211                                   QPixmap *pImage /* = 0 */,
     
    213213                                   QWidget *pParent /* = 0 */)
    214214    : QIWithRetranslateUI2<QIDialog>(pParent, Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint)
    215     , m_comProgress(progress)
     215    , m_comProgress(comProgress)
    216216    , m_strTitle(strTitle)
    217217    , m_pImage(pImage)
     
    317317}
    318318
    319 void UIProgressDialog::timerEvent(QTimerEvent*)
     319void UIProgressDialog::timerEvent(QTimerEvent *)
    320320{
    321321    /* Call the timer event handling delegate: */
     
    331331}
    332332
    333 void UIProgressDialog::sltHandleProgressPercentageChange(QString /* strProgressId */, int iPercent)
     333void UIProgressDialog::sltHandleProgressPercentageChange(QString, int iPercent)
    334334{
    335335    /* New mode only: */
     
    341341}
    342342
    343 void UIProgressDialog::sltHandleProgressTaskComplete(QString /* strProgressId */)
     343void UIProgressDialog::sltHandleProgressTaskComplete(QString)
    344344{
    345345    /* New mode only: */
     
    692692*********************************************************************************************************************************/
    693693
    694 UIProgress::UIProgress(CProgress &progress, QObject *pParent /* = 0 */)
     694UIProgress::UIProgress(CProgress &comProgress, QObject *pParent /* = 0 */)
    695695    : QObject(pParent)
    696     , m_comProgress(progress)
     696    , m_comProgress(comProgress)
    697697    , m_cOperations(m_comProgress.GetOperationCount())
    698698    , m_fEnded(false)
     
    732732}
    733733
    734 void UIProgress::timerEvent(QTimerEvent*)
     734void UIProgress::timerEvent(QTimerEvent *)
    735735{
    736736    /* Make sure the UIProgress still 'running': */
     
    765765}
    766766
     767
    767768#include "UIProgressDialog.moc"
     769
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.h

    r69006 r71578  
    55
    66/*
    7  * Copyright (C) 2009-2017 Oracle Corporation
     7 * Copyright (C) 2009-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    211211
    212212    /** Holds the personal event-loop instance. */
    213     QPointer<QEventLoop> m_pEventLoop;
     213    QPointer<QEventLoop>  m_pEventLoop;
    214214};
    215215
     216
    216217#endif /* !___UIProgressDialog_h___ */
    217218
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette