VirtualBox

Changeset 91460 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 29, 2021 3:03:12 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: UIWizardExportApp: A bit of refactoring; Renaming m_pSettingsWidget to m_pSettingsWidget1 since there will be 2nd stacked-widget soon.

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

Legend:

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

    r91368 r91460  
    561561    , m_pFormatComboBoxLabel(0)
    562562    , m_pFormatComboBox(0)
    563     , m_pSettingsWidget(0)
     563    , m_pSettingsWidget1(0)
    564564    , m_pSettingsLayout1(0)
    565565    , m_pFileSelectorLabel(0)
     
    624624            pMainLayout->addWidget(m_pLabelSettings);
    625625
    626         /* Create settings layout: */
    627         m_pSettingsWidget = new QStackedWidget(this);
    628         if (m_pSettingsWidget)
     626        /* Create settings widget 1: */
     627        m_pSettingsWidget1 = new QStackedWidget(this);
     628        if (m_pSettingsWidget1)
    629629        {
    630630            /* Create settings pane 1: */
    631             QWidget *pSettingsPane1 = new QWidget(m_pSettingsWidget);
     631            QWidget *pSettingsPane1 = new QWidget(m_pSettingsWidget1);
    632632            if (pSettingsPane1)
    633633            {
     
    701701
    702702                /* Add into layout: */
    703                 m_pSettingsWidget->addWidget(pSettingsPane1);
     703                m_pSettingsWidget1->addWidget(pSettingsPane1);
    704704            }
    705705
    706706            /* Create settings pane 2: */
    707             QWidget *pSettingsPane2 = new QWidget(m_pSettingsWidget);
     707            QWidget *pSettingsPane2 = new QWidget(m_pSettingsWidget1);
    708708            if (pSettingsPane2)
    709709            {
     
    795795
    796796                /* Add into layout: */
    797                 m_pSettingsWidget->addWidget(pSettingsPane2);
     797                m_pSettingsWidget1->addWidget(pSettingsPane2);
    798798            }
    799799
    800800            /* Add into layout: */
    801             pMainLayout->addWidget(m_pSettingsWidget);
     801            pMainLayout->addWidget(m_pSettingsWidget1);
    802802        }
    803803    }
     
    10811081
    10821082    /* Refresh settings widget state: */
    1083     refreshStackedWidget(m_pSettingsWidget, wizard()->isFormatCloudOne());
     1083    refreshStackedWidget(m_pSettingsWidget1, wizard()->isFormatCloudOne());
    10841084
    10851085    /* Update export settings: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h

    r91368 r91460  
    220220    QIComboBox  *m_pFormatComboBox;
    221221
    222     /** Holds the settings widget instance. */
    223     QStackedWidget *m_pSettingsWidget;
     222    /** Holds the settings widget 1 instance. */
     223    QStackedWidget *m_pSettingsWidget1;
    224224
    225225    /** Holds the settings layout 1. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp

    r91368 r91460  
    7272    , m_pFormatComboBoxLabel(0)
    7373    , m_pFormatComboBox(0)
    74     , m_pSettingsWidget(0)
     74    , m_pSettingsWidget1(0)
    7575    , m_pSettingsLayout1(0)
    7676    , m_pFileSelectorLabel(0)
     
    222222
    223223                /* Create settings widget: */
    224                 m_pSettingsWidget = new QStackedWidget;
    225                 if (m_pSettingsWidget)
     224                m_pSettingsWidget1 = new QStackedWidget;
     225                if (m_pSettingsWidget1)
    226226                {
    227227                    /* Create settings pane 1: */
    228                     QWidget *pSettingsPane1 = new QWidget(m_pSettingsWidget);
     228                    QWidget *pSettingsPane1 = new QWidget(m_pSettingsWidget1);
    229229                    if (pSettingsPane1)
    230230                    {
     
    315315
    316316                        /* Add into layout: */
    317                         m_pSettingsWidget->addWidget(pSettingsPane1);
     317                        m_pSettingsWidget1->addWidget(pSettingsPane1);
    318318                    }
    319319
    320320                    /* Create settings pane 2: */
    321                     QWidget *pSettingsPane2 = new QWidget(m_pSettingsWidget);
     321                    QWidget *pSettingsPane2 = new QWidget(m_pSettingsWidget1);
    322322                    if (pSettingsPane2)
    323323                    {
     
    404404
    405405                        /* Add into layout: */
    406                         m_pSettingsWidget->addWidget(pSettingsPane2);
     406                        m_pSettingsWidget1->addWidget(pSettingsPane2);
    407407                    }
    408408
    409409                    /* Add into layout: */
    410                     pSettingsCntLayout->addWidget(m_pSettingsWidget);
     410                    pSettingsCntLayout->addWidget(m_pSettingsWidget1);
    411411                }
    412412            }
     
    737737
    738738    /* Refresh settings widget state: */
    739     refreshStackedWidget(m_pSettingsWidget, wizard()->isFormatCloudOne());
     739    refreshStackedWidget(m_pSettingsWidget1, wizard()->isFormatCloudOne());
    740740    refreshStackedLayout(m_pSettingsLayout, wizard()->isFormatCloudOne());
    741741
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h

    r91368 r91460  
    164164    QIComboBox  *m_pFormatComboBox;
    165165
    166     /** Holds the settings widget instance. */
    167     QStackedWidget *m_pSettingsWidget;
     166    /** Holds the settings widget 1 instance. */
     167    QStackedWidget *m_pSettingsWidget1;
    168168
    169169    /** Holds the settings layout 1. */
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