VirtualBox

Changeset 86324 in vbox


Ignore:
Timestamp:
Sep 28, 2020 3:25:28 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: Reworking UIProgressEventHandler to have proper escape event type KVBoxEventType_OnProgressTaskCompleted which should command listener to shutdown; Besides that, propagate signal about listening finished as signal about handling finished; This change is based on possibilities implemented in r140609.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIProgressEventHandler.cpp

    r82968 r86324  
    7272    {
    7373        /* Register event sources in their listeners as well: */
    74         m_pQtListener->getWrapped()->registerSource(comEventSourceProgress, m_comEventListener);
     74        m_pQtListener->getWrapped()->registerSource(comEventSourceProgress,
     75                                                    m_comEventListener,
     76                                                    QSet<KVBoxEventType>() << KVBoxEventType_OnProgressTaskCompleted);
    7577    }
    7678}
     
    7981{
    8082    /* Create direct (sync) connections for signals of main listener: */
     83    connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigListeningFinished,
     84            this, &UIProgressEventHandler::sigHandlingFinished,
     85            Qt::DirectConnection);
    8186    connect(m_pQtListener->getWrapped(), &UIMainEventListener::sigProgressPercentageChange,
    8287            this, &UIProgressEventHandler::sigProgressPercentageChange,
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIProgressEventHandler.h

    r82968 r86324  
    4343    /** Notifies about task complete for progress with @a uProgressId. */
    4444    void sigProgressTaskComplete(const QUuid &uProgressId);
     45    /** Notifies about handling has finished. */
     46    void sigHandlingFinished();
    4547
    4648public:
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