VirtualBox

Changeset 91035 in vbox


Ignore:
Timestamp:
Aug 31, 2021 3:57:07 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146677
Message:

FE/Qt: bugref:9996. Some more code cleaning

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

Legend:

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

    r90827 r91035  
    4545}
    4646
     47const CMedium &UIWizardCloneVD::sourceVirtualDisk() const
     48{
     49    return m_comSourceVirtualDisk;
     50}
     51
    4752KDeviceType UIWizardCloneVD::deviceType() const
    4853{
     
    104109            {
    105110            addPage(new UIWizardCloneVDPageFormat(m_enmDeviceType));
    106             m_iMediumVariantPageIndex = addPage(new UIWizardCloneVDPageVariant(m_enmDeviceType));
     111            m_iMediumVariantPageIndex = addPage(new UIWizardCloneVDPageVariant);
    107112            addPage(new UIWizardCloneVDPagePathSize(sourceDiskLogicalSize()));
    108113            break;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.h

    r90827 r91035  
    4141
    4242    /** Returns source virtual-disk. */
    43     const CMedium &sourceVirtualDisk() const { return m_comSourceVirtualDisk; }
    44 
    45     /** Returns the source virtual-disk device type. */
    46     KDeviceType deviceType() const;
     43    const CMedium &sourceVirtualDisk() const;
    4744
    4845    /** Makes a copy of source virtual-disk. */
    4946    bool copyVirtualDisk();
    5047
    51     const CMediumFormat &mediumFormat() const;
    52     void setMediumFormat(const CMediumFormat &comMediumFormat);
     48    /** @name Parameter setter/getters
     49      * @{ */
     50        /** Returns the source virtual-disk device type. */
     51        KDeviceType deviceType() const;
    5352
    54     qulonglong mediumVariant() const;
    55     void setMediumVariant(qulonglong uMediumVariant);
     53        const CMediumFormat &mediumFormat() const;
     54        void setMediumFormat(const CMediumFormat &comMediumFormat);
    5655
    57     qulonglong mediumSize() const;
    58     void setMediumSize(qulonglong uMediumSize);
     56        qulonglong mediumVariant() const;
     57        void setMediumVariant(qulonglong uMediumVariant);
    5958
    60     const QString &mediumPath() const;
    61     void setMediumPath(const QString &strPath);
     59        qulonglong mediumSize() const;
     60        void setMediumSize(qulonglong uMediumSize);
    6261
    63     qulonglong sourceDiskLogicalSize() const;
    64     QString sourceDiskFilePath() const;
    65     QString sourceDiskName() const;
     62        const QString &mediumPath() const;
     63        void setMediumPath(const QString &strPath);
     64
     65        qulonglong sourceDiskLogicalSize() const;
     66        QString sourceDiskFilePath() const;
     67        QString sourceDiskName() const;
     68   /** @} */
    6669
    6770protected:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.h

    r90990 r91035  
    3232class UIDiskVariantGroupBox;
    3333class UIMediumSizeAndPathGroupBox;
    34 class UIWizardCloneVD;
    3534
    3635/** Expert page of the Clone Virtual Disk Image wizard: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageFormat.h

    r90990 r91035  
    3434class QIRichTextLabel;
    3535class UIDiskFormatsGroupBox;
    36 class UIWizardCloneVD;
    37 
    3836
    3937/** 2nd page of the Clone Virtual Disk Image wizard (basic extension): */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPagePathSize.cpp

    r90990 r91035  
    3535{
    3636    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
    37 
    3837    m_pMediumSizePathGroupBox = new UIMediumSizeAndPathGroupBox(false /* expert mode */, 0 /* parent */, uSourceDiskLogicaSize);
    3938    if (m_pMediumSizePathGroupBox)
     
    4746                this, &UIWizardCloneVDPagePathSize::sltMediumSizeChanged);
    4847    }
    49 
    5048    pMainLayout->addStretch();
    5149    retranslateUi();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPagePathSize.h

    r90990 r91035  
    3333
    3434/* Forward declarations: */
    35 class QIRichTextLabel;
    3635class UIMediumSizeAndPathGroupBox;
    37 class UIWizardCloneVD;
    3836
    3937/** 4th page of the Clone Virtual Disk Image wizard (basic extension): */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageVariant.cpp

    r90990 r91035  
    2828#include "CMediumFormat.h"
    2929
    30 UIWizardCloneVDPageVariant::UIWizardCloneVDPageVariant(KDeviceType /*enmDeviceType*/)
     30UIWizardCloneVDPageVariant::UIWizardCloneVDPageVariant()
    3131    : m_pDescriptionLabel(0)
    3232    , m_pDynamicLabel(0)
     
    6666
    6767    }
    68 
    6968    retranslateUi();
    7069}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageVariant.h

    r90990 r91035  
    2525#include "UINativeWizardPage.h"
    2626
    27 /* COM includes: */
    28 #include "COMEnums.h"
    29 
    3027/* Forward declarations: */
    3128class QIRichTextLabel;
    32 class UIWizardCloneVD;
    3329class CMediumFormat;
    3430class UIDiskVariantGroupBox;
     
    4137
    4238    /** Constructs basic page. */
    43     UIWizardCloneVDPageVariant(KDeviceType enmDeviceType);
     39    UIWizardCloneVDPageVariant();
    4440
    4541private slots:
     
    6864    /** Holds the 'Split to 2GB files' description label instance. */
    6965    QIRichTextLabel *m_pSplitLabel;
    70 
    7166    UIDiskVariantGroupBox *m_pVariantGroupBox;
    7267};
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVM.cpp

    r90752 r91035  
    2828
    2929/* COM includes: */
    30 #include "CConsole.h"
    3130#include "CSystemProperties.h"
    3231
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVM.h

    r90990 r91035  
    2727
    2828/* COM includes: */
    29 #include "COMEnums.h"
    3029#include "CMachine.h"
    3130#include "CSnapshot.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMModePageBasic.cpp

    r90990 r91035  
    1919#include <QVBoxLayout>
    2020
    21 
    2221/* Local includes: */
    2322#include "UIWizardCloneVM.h"
     
    2524#include "UIWizardCloneVMModePageBasic.h"
    2625#include "QIRichTextLabel.h"
    27 
    2826
    2927UIWizardCloneVMModePageBasic::UIWizardCloneVMModePageBasic(bool fShowChildsOption)
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMNamePathPageBasic.h

    r90990 r91035  
    3333class UICloneVMNamePathEditor;
    3434class QIRichTextLabel;
    35 class UIWizardCloneVM;
    3635
    3736namespace UIWizardCloneVMNamePathPage
    3837{
    3938    QString composeCloneFilePath(const QString &strCloneName, const QString &strGroup, const QString &strFolderPath);
    40 
    41 
    4239}
    4340
     
    6764
    6865    QIRichTextLabel *m_pMainLabel;
    69 
    7066    UICloneVMNamePathEditor *m_pNamePathEditor;
    7167    UICloneVMAdditionalOptionsEditor *m_pAdditionalOptionsEditor;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp

    r90990 r91035  
    3838UIWizardCloneVMPageExpert::UIWizardCloneVMPageExpert(const QString &strOriginalName, const QString &strDefaultPath,
    3939                                                     bool /*fAdditionalInfo*/, bool fShowChildsOption, const QString &strGroup)
    40     : m_pMainLayout(0)
    41     , m_pNamePathGroupBox(0)
     40    : m_pNamePathGroupBox(0)
    4241    , m_pCloneTypeGroupBox(0)
    4342    , m_pCloneModeGroupBox(0)
     
    5049void UIWizardCloneVMPageExpert::prepare(const QString &strOriginalName, const QString &strDefaultPath, bool fShowChildsOption)
    5150{
    52     m_pMainLayout = new QGridLayout(this);
    53     AssertReturnVoid(m_pMainLayout);
     51    QGridLayout *pMainLayout = new QGridLayout(this);
     52    AssertReturnVoid(pMainLayout);
    5453    m_pNamePathGroupBox = new UICloneVMNamePathEditor(strOriginalName, strDefaultPath);
    5554    if (m_pNamePathGroupBox)
    5655    {
    57         m_pMainLayout->addWidget(m_pNamePathGroupBox, 0, 0, 3, 2);
     56        pMainLayout->addWidget(m_pNamePathGroupBox, 0, 0, 3, 2);
    5857        connect(m_pNamePathGroupBox, &UICloneVMNamePathEditor::sigCloneNameChanged,
    5958                this, &UIWizardCloneVMPageExpert::sltCloneNameChanged);
     
    6463    m_pCloneTypeGroupBox = new UICloneVMCloneTypeGroupBox;
    6564    if (m_pCloneTypeGroupBox)
    66         m_pMainLayout->addWidget(m_pCloneTypeGroupBox, 3, 0, 2, 1);
     65        pMainLayout->addWidget(m_pCloneTypeGroupBox, 3, 0, 2, 1);
    6766
    6867    m_pCloneModeGroupBox = new UICloneVMCloneModeGroupBox(fShowChildsOption);
    6968    if (m_pCloneModeGroupBox)
    70         m_pMainLayout->addWidget(m_pCloneModeGroupBox, 3, 1, 2, 1);
     69        pMainLayout->addWidget(m_pCloneModeGroupBox, 3, 1, 2, 1);
    7170
    7271    m_pAdditionalOptionsGroupBox = new UICloneVMAdditionalOptionsEditor;
    7372    if (m_pAdditionalOptionsGroupBox)
    7473    {
    75         m_pMainLayout->addWidget(m_pAdditionalOptionsGroupBox, 5, 0, 2, 2);
     74        pMainLayout->addWidget(m_pAdditionalOptionsGroupBox, 5, 0, 2, 2);
    7675        connect(m_pAdditionalOptionsGroupBox, &UICloneVMAdditionalOptionsEditor::sigMACAddressClonePolicyChanged,
    7776                this, &UIWizardCloneVMPageExpert::sltMACAddressClonePolicyChanged);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageExpert.h

    r90990 r91035  
    2727
    2828/* Forward declarations: */
    29 class QGroupBox;
    30 class QGridLayout;
    3129class UICloneVMAdditionalOptionsEditor;
    3230class UICloneVMCloneModeGroupBox;
    3331class UICloneVMCloneTypeGroupBox;
    3432class UICloneVMNamePathEditor;
    35 class UIWizardCloneVM;
    3633
    3734/* Expert page of the Clone Virtual Machine wizard: */
     
    6764    bool validatePage();
    6865
    69     QGridLayout *m_pMainLayout;
    7066    UICloneVMNamePathEditor *m_pNamePathGroupBox;
    7167    UICloneVMCloneTypeGroupBox *m_pCloneTypeGroupBox;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMTypePageBasic.cpp

    r90990 r91035  
    2424#include "QIRichTextLabel.h"
    2525#include "UIWizardCloneVMEditors.h"
    26 
    27 /* COM includes: */
    28 #include "CSystemProperties.h"
    29 
    3026
    3127UIWizardCloneVMTypePageBasic::UIWizardCloneVMTypePageBasic(bool fAdditionalInfo)
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMTypePageBasic.h

    r90990 r91035  
    3131class QIRichTextLabel;
    3232class UICloneVMCloneTypeGroupBox;
    33 class UIWizardCloneVM;
    3433
    3534class UIWizardCloneVMTypePageBasic : public UINativeWizardPage
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp

    r90564 r91035  
    2525#include "UIWizardNewVDPageSizeLocation.h"
    2626#include "UIWizardNewVDPageExpert.h"
    27 
    2827
    2928UIWizardNewVD::UIWizardNewVD(QWidget *pParent,
     
    10099            break;
    101100        }
    102        case WizardMode_Expert:
     101        case WizardMode_Expert:
    103102        {
    104103            addPage(new UIWizardNewVDPageExpert(m_strDefaultName, m_strDefaultPath, m_uDefaultSize));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.h

    r90990 r91035  
    4343    bool createVirtualDisk();
    4444
    45     qulonglong mediumVariant() const;
    46     void setMediumVariant(qulonglong uMediumVariant);
     45    /** @name Setter/getters for vm parameters
     46     * @{ */
     47       qulonglong mediumVariant() const;
     48       void setMediumVariant(qulonglong uMediumVariant);
    4749
    48     const CMediumFormat &mediumFormat();
    49     void setMediumFormat(const CMediumFormat &mediumFormat);
     50       const CMediumFormat &mediumFormat();
     51       void setMediumFormat(const CMediumFormat &mediumFormat);
    5052
    51     const QString &mediumPath() const;
    52     void setMediumPath(const QString &strMediumPath);
     53       const QString &mediumPath() const;
     54       void setMediumPath(const QString &strMediumPath);
    5355
    54     qulonglong mediumSize() const;
    55     void setMediumSize(qulonglong mediumSize);
     56       qulonglong mediumSize() const;
     57       void setMediumSize(qulonglong mediumSize);
     58    /** @} */
    5659
    5760protected:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp

    r90990 r91035  
    1919#include <QDir>
    2020#include <QGridLayout>
    21 #include <QVBoxLayout>
    22 #include <QRegExpValidator>
    23 #include <QGroupBox>
    24 #include <QRadioButton>
    25 #include <QCheckBox>
    26 #include <QButtonGroup>
    27 #include <QLineEdit>
    28 #include <QSlider>
    29 #include <QLabel>
    3021
    3122/* GUI includes: */
    3223#include "UIWizardDiskEditors.h"
    33 #include "UIConverter.h"
    3424#include "UIWizardNewVDPageExpert.h"
    3525#include "UIWizardNewVD.h"
    3626#include "UICommon.h"
    3727#include "UIMessageCenter.h"
    38 #include "UIIconPool.h"
    39 #include "QIRichTextLabel.h"
    40 #include "QIToolButton.h"
    41 #include "QILineEdit.h"
    42 #include "UIMediumSizeEditor.h"
    43 #include "UIWizardNewVDPageSizeLocation.h"
    4428
    4529/* COM includes: */
    4630#include "CSystemProperties.h"
    47 
    4831
    4932UIWizardNewVDPageExpert::UIWizardNewVDPageExpert(const QString &strDefaultName, const QString &strDefaultPath, qulonglong uDefaultSize)
     
    225208    AssertReturnVoid(!comMediumFormat.isNull());
    226209
    227     /* Block signals of the updated widgets to avoid calling corresponding slots since they add the parameters to m_userModifiedParameters: */
    228     m_pVariantGroup->blockSignals(true);
    229210    m_pVariantGroup->updateMediumVariantWidgetsAfterFormatChange(comMediumFormat);
    230     m_pVariantGroup->blockSignals(false);
    231 
    232     m_pSizeAndPathGroup->blockSignals(true);
    233211    m_pSizeAndPathGroup->updateMediumPath(comMediumFormat, m_pFormatGroup->formatExtensions(), KDeviceType_HardDisk);
    234     m_pSizeAndPathGroup->blockSignals(false);
    235     /* Update the wizard parameters explicitly since we blocked th signals: */
    236     pWizard->setMediumPath(m_pSizeAndPathGroup->mediumPath());
    237     pWizard->setMediumVariant(m_pVariantGroup->mediumVariant());
    238 }
     212}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.h

    r90990 r91035  
    2626
    2727/* Forward declarations: */
    28 class QGroupBox;
    2928class UIDiskFormatsGroupBox;
    3029class UIDiskVariantGroupBox;
    3130class UIMediumSizeAndPathGroupBox;
    32 class UIWizardNewVD;
    3331
    3432/* Expert page of the New Virtual Hard Drive wizard: */
     
    4038
    4139    UIWizardNewVDPageExpert(const QString &strDefaultName, const QString &strDefaultPath, qulonglong uDefaultSize);
    42 
    43 protected:
    44 
    4540
    4641private slots:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageFileType.cpp

    r90990 r91035  
    1818/* Qt includes: */
    1919#include <QVBoxLayout>
    20 #include <QRadioButton>
    2120
    2221/* GUI includes: */
    23 #include "UIConverter.h"
    2422#include "UIWizardDiskEditors.h"
    2523#include "UIWizardNewVDPageFileType.h"
     
    5856{
    5957    setTitle(UIWizardNewVD::tr("Virtual Hard disk file type"));
    60 
    6158    m_pLabel->setText(UIWizardNewVD::tr("Please choose the type of file that you would like to use "
    6259                                        "for the new virtual hard disk. If you do not need to use it "
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageFileType.h

    r90990 r91035  
    2828class QIRichTextLabel;
    2929class UIDiskFormatsGroupBox;
    30 class UIWizardNewVD;
    31 
    32 namespace UIWizardNewVDFileType
    33 {
    34 }
    3530
    3631/* 1st page of the New Virtual Hard Drive wizard (basic extension): */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageSizeLocation.cpp

    r90990 r91035  
    2121
    2222/* GUI includes: */
    23 #include "QIFileDialog.h"
    2423#include "UIWizardNewVDPageSizeLocation.h"
    2524#include "UIWizardNewVD.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageSizeLocation.h

    r90763 r91035  
    2626
    2727/* Forward declarations: */
    28 class CMediumFormat;
    2928class UIMediumSizeAndPathGroupBox;
    30 class UIWizardNewVD;
    3129
    3230class SHARED_LIBRARY_STUFF UIWizardNewVDPageSizeLocation : public UINativeWizardPage
     
    3735
    3836    UIWizardNewVDPageSizeLocation(const QString &strDefaultName, const QString &strDefaultPath, qulonglong uDefaultSize);
    39 
    40 protected:
    41 
    4237
    4338private slots:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageVariant.cpp

    r90990 r91035  
    4040void UIWizardNewVDPageVariant::prepare()
    4141{
    42 
    4342    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
    4443    AssertReturnVoid(pMainLayout);
     
    103102{
    104103    AssertReturnVoid(m_pVariantGroupBox);
    105 
    106104    m_pVariantGroupBox->updateMediumVariantWidgetsAfterFormatChange(mediumFormat);
    107 
    108105    if (m_pDynamicLabel)
    109106        m_pDynamicLabel->setHidden(!m_pVariantGroupBox->isCreateDynamicPossible());
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageVariant.h

    r90990 r91035  
    2929class QIRichTextLabel;
    3030class UIDiskVariantGroupBox;
    31 class UIWizardNewVD;
    3231
    3332class SHARED_LIBRARY_STUFF UIWizardNewVDPageVariant : public UINativeWizardPage
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPageBasic.h

    r90902 r91035  
    4242class UIMediaComboBox;
    4343class UIMediumSizeEditor;
    44 class UIWizardNewVM;
    4544
    4645enum SelectedDiskSource
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePageBasic.h

    r91025 r91035  
    3131class QIRichTextLabel;
    3232class UINewVMHardwareContainer;
    33 class UIWizardNewVM;
    34 
    35 namespace UIWizardNewVMHardwarePage
    36 {
    37 }
    3833
    3934class UIWizardNewVMHardwarePageBasic : public UINativeWizardPage
     
    4439
    4540    UIWizardNewVMHardwarePageBasic();
    46 
    47 protected:
    48 
    4941
    5042private slots:
     
    6456
    6557    /** @name Widgets
    66      * @{ */
    67        QIRichTextLabel    *m_pLabel;
    68        UINewVMHardwareContainer *m_pHardwareWidgetContainer;
     58      * @{ */
     59        QIRichTextLabel    *m_pLabel;
     60        UINewVMHardwareContainer *m_pHardwareWidgetContainer;
    6961    /** @} */
    7062    /** This set is used to decide if we have to set wizard's parameters
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.h

    r90413 r91035  
    5252class UIWizardNewVMNameOSTypePageBasic : public UINativeWizardPage
    5353{
    54 
    5554    Q_OBJECT;
    5655
     
    8584    void createConnections();
    8685    void initializePage();
    87     //void cleanupPage();
    8886    QWidget *createNameOSTypeWidgets();
    8987    void markWidgets() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r91025 r91035  
    247247        connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::toggled,
    248248                this, &UIWizardNewVMPageExpert::sltInstallGACheckBoxToggle);
    249 
    250249    }
    251250
     
    295294                this, &UIWizardNewVMPageExpert::sltMediaComboBoxIndexChanged);
    296295
    297 
    298296    connect(m_pFormatButtonGroup, &UIDiskFormatsGroupBox::sigMediumFormatChanged,
    299297            this, &UIWizardNewVMPageExpert::sltMediumFormatChanged);
     
    401399    disableEnableUnattendedRelatedWidgets(isUnattendedEnabled());
    402400    updateDiskWidgetsAfterMediumFormatChange();
    403     // setSkipCheckBoxEnable();
    404401    retranslateUi();
    405402}
     
    583580        }
    584581    }
    585 
    586 
    587582    return fIsComplete;
    588583}
     
    842837    /* Update the wizard parameters explicitly since we blocked th signals: */
    843838    pWizard->setMediumPath(m_pSizeAndLocationGroup->mediumPath());
    844 pWizard->setMediumVariant(m_pDiskVariantGroupBox->mediumVariant());
     839    pWizard->setMediumVariant(m_pDiskVariantGroupBox->mediumVariant());
    845840}
    846841
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h

    r90990 r91035  
    4545class UIToolBox;
    4646class UIUserNamePasswordGroupBox;
    47 class UIWizardNewVM;
    4847
    4948/** Expert page of the New Virtual Machine wizard. */
    5049class UIWizardNewVMPageExpert : public UINativeWizardPage
    5150{
    52 
    5351    Q_OBJECT;
    5452
     
    5654
    5755    UIWizardNewVMPageExpert();
    58 
    59 protected:
    60 
    6156
    6257private slots:
     
    8378    void sltPasswordChanged(const QString &strPassword);
    8479    void sltUserNameChanged(const QString &strUserName);
    85 
    8680    void sltHostnameDomainNameChanged(const QString &strHostnameDomainName);
    8781    void sltProductKeyChanged(const QString &strProductKey);
     
    121115    QWidget *createNewDiskWidgets();
    122116    QWidget *createDiskWidgets();
    123 
    124117    QWidget *createNameOSTypeWidgets();
    125 
    126118    void updateVirtualMediumPathFromMachinePathName();
    127119    void updateDiskWidgetsAfterMediumFormatChange();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp

    r91025 r91035  
    172172}
    173173
    174 void UIWizardNewVMUnattendedPageBasic::showEvent(QShowEvent *pEvent)
    175 {
    176     UINativeWizardPage::showEvent(pEvent);
    177 }
    178 
    179174void UIWizardNewVMUnattendedPageBasic::sltInstallGACheckBoxToggle(bool fEnabled)
    180175{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.h

    r91025 r91035  
    3030class UIGAInstallationGroupBox;
    3131class UIUserNamePasswordGroupBox;
    32 class UIWizardNewVM;
    3332
    3433namespace UIWizardNewVMUnattendedPage
     
    4544
    4645    UIWizardNewVMUnattendedPageBasic();
    47 
    48 protected:
    49 
    50     virtual void showEvent(QShowEvent *pEvent) /* override final*/;
    51     /** Don't reset the user entered values in case of "back" button press. */
    5246
    5347private slots:
     
    7973        UIGAInstallationGroupBox *m_pGAInstallationISOContainer;
    8074        UIUserNamePasswordGroupBox *m_pUserNamePasswordGroupBox;
    81 
    8275    /** @} */
    8376    QSet<QString> m_userModifiedParameters;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette