VirtualBox

Changeset 56495 in vbox


Ignore:
Timestamp:
Jun 18, 2015 10:32:52 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: UIProgressDialog: Added new signal sigProgressChange (like we already do for UIProgress) to make progress tracking available for others.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp

    r55696 r56495  
    338338        m_fCancelEnabled = m_progress.GetCancelable();
    339339        m_pCancelBtn->setEnabled(m_fCancelEnabled);
     340
     341        /* Notify listeners about the operation progress update: */
     342        emit sigProgressChange(m_cOperations, m_progress.GetOperationDescription(),
     343                               m_progress.GetOperation() + 1, m_progress.GetPercent());
    340344    }
    341345    else
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.h

    r55696 r56495  
    5757    /* API: Run stuff: */
    5858    int run(int aRefreshInterval);
     59
     60signals:
     61
     62    /** Notifies listeners about wrapped CProgress change.
     63      * @param iOperations  holds the number of operations CProgress have,
     64      * @param strOperation holds the description of the current CProgress operation,
     65      * @param iOperation   holds the index of the current CProgress operation,
     66      * @param iPercent     holds the percentage of the current CProgress operation. */
     67    void sigProgressChange(ulong iOperations, QString strOperation,
     68                           ulong iOperation, ulong iPercent);
    5969
    6070public slots:
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