VirtualBox

Ignore:
Timestamp:
Sep 21, 2020 7:32:28 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: Rename UIProgress::run to UIProgress::exec since that is a blocking event-loop call.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UITaskCloudRefreshMachineInfo.cpp

    r86200 r86205  
    5252        /* Show "Refresh cloud machine information" progress: */
    5353        QPointer<UIProgress> pObject = new UIProgress(m_comCloudMachineRefreshProgress, this);
    54         pObject->run();
     54        pObject->exec();
    5555        if (pObject)
    5656            delete pObject;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp

    r86161 r86205  
    11661166                                    this, &UIMachineSettingsGeneral::sigOperationProgressError,
    11671167                                    Qt::BlockingQueuedConnection);
    1168                             pObject->run();
     1168                            pObject->exec();
    11691169                            if (pObject)
    11701170                                delete pObject;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp

    r86198 r86205  
    561561}
    562562
    563 void UIProgress::run()
     563void UIProgress::exec()
    564564{
    565565    /* Make sure progress hasn't aborted/finished already: */
     
    570570     * but holding a pointer to it for a control needs: */
    571571    QEventLoop eventLoop;
    572     m_pEventLoop = &eventLoop;
     572    m_pEventLoopExec = &eventLoop;
    573573
    574574    /* Guard ourself for the case
     
    585585
    586586    /* Cleanup the pointer finally: */
    587     m_pEventLoop = 0;
     587    m_pEventLoopExec = 0;
    588588}
    589589
     
    602602        emit sigProgressError(UIErrorString::formatErrorInfo(m_comProgress));
    603603
    604     /* Exit from the event-loop if there is any: */
    605     if (m_pEventLoop)
    606         m_pEventLoop->exit();
     604    /* Exit from the exec event-loop if there is any: */
     605    if (m_pEventLoopExec)
     606        m_pEventLoopExec->exit();
    607607}
    608608
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.h

    r86198 r86205  
    202202    virtual ~UIProgress() /* override */;
    203203
    204     /** Executes the progress-handler within its loop. */
    205     void run();
     204    /** Executes the progress within local event-loop. */
     205    void exec();
    206206
    207207private slots:
     
    229229    UIProgressEventHandler *m_pEventHandler;
    230230
    231     /** Holds the personal event-loop instance. */
    232     QPointer<QEventLoop>  m_pEventLoop;
     231    /** Holds the exec event-loop instance. */
     232    QPointer<QEventLoop>  m_pEventLoopExec;
    233233};
    234234
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