VirtualBox

Changeset 91754 in vbox for trunk


Ignore:
Timestamp:
Oct 15, 2021 9:43:13 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Provide UINativeWizard with own private notification-center.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp

    r91713 r91754  
    3636#include "UINativeWizard.h"
    3737#include "UINativeWizardPage.h"
     38#include "UINotificationCenter.h"
    3839
    3940
     
    103104    , m_pProgressStack(0)
    104105    , m_pProgressBar(0)
     106    , m_pNotificationCenter(0)
    105107{
    106108    prepare();
     
    543545        }
    544546    }
     547
     548    /* Prepare local notification-center: */
     549    m_pNotificationCenter = new UINotificationCenter(this);
    545550}
    546551
    547552void UINativeWizard::cleanup()
    548553{
     554    /* Cleanup local notification-center: */
     555    delete m_pNotificationCenter;
     556    m_pNotificationCenter = 0;
     557
    549558    /* Remove all the pages: */
    550559    m_pWidgetStack->blockSignals(true);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.h

    r91026 r91754  
    3838class QVBoxLayout;
    3939class UINativeWizardPage;
     40class UINotificationCenter;
    4041
    4142/** Native wizard buttons. */
     
    198199    /** Holds button instance map. */
    199200    QMap<WizardButtonType, QPushButton*>  m_buttons;
     201
     202    /** Holds the local notification-center instance. */
     203    UINotificationCenter *m_pNotificationCenter;
    200204};
    201205
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