VirtualBox

Changeset 41398 in vbox


Ignore:
Timestamp:
May 22, 2012 2:45:37 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Copy Virtual Hard Drive wizard: Removing group-boxes from basic mode.

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

Legend:

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

    r41392 r41398  
    403403    {
    404404        case UIWizardType_NewVD:
     405        case UIWizardType_CloneVD:
    405406            dRatio += 0.1;
    406         case UIWizardType_CloneVD:
    407407        case UIWizardType_ExportAppliance:
    408408            dRatio += 0.3;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp

    r41372 r41398  
    2121#include <QVBoxLayout>
    2222#include <QHBoxLayout>
    23 #include <QGroupBox>
    2423
    2524/* Local includes: */
     
    6463    {
    6564        m_pLabel = new QIRichTextLabel(this);
    66         m_pSourceDiskCnt = new QGroupBox(this);
     65        QHBoxLayout *pSourceDiskLayout = new QHBoxLayout;
    6766        {
    68             m_pSourceDiskCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    69             QHBoxLayout *pSourceDiskCntLayout = new QHBoxLayout(m_pSourceDiskCnt);
     67            m_pSourceDiskSelector = new VBoxMediaComboBox(this);
    7068            {
    71                 m_pSourceDiskSelector = new VBoxMediaComboBox(m_pSourceDiskCnt);
    72                 {
    73                     m_pSourceDiskSelector->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
    74                     m_pSourceDiskSelector->setType(VBoxDefs::MediumType_HardDisk);
    75                     m_pSourceDiskSelector->setCurrentItem(sourceVirtualDisk.GetId());
    76                     m_pSourceDiskSelector->repopulate();
    77                 }
    78                 m_pSourceDiskOpenButton = new QIToolButton(m_pSourceDiskCnt);
    79                 {
    80                     m_pSourceDiskOpenButton->setAutoRaise(true);
    81                     m_pSourceDiskOpenButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_dis_16px.png"));
    82                 }
    83                 pSourceDiskCntLayout->addWidget(m_pSourceDiskSelector);
    84                 pSourceDiskCntLayout->addWidget(m_pSourceDiskOpenButton);
     69                m_pSourceDiskSelector->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
     70                m_pSourceDiskSelector->setType(VBoxDefs::MediumType_HardDisk);
     71                m_pSourceDiskSelector->setCurrentItem(sourceVirtualDisk.GetId());
     72                m_pSourceDiskSelector->repopulate();
    8573            }
     74            m_pSourceDiskOpenButton = new QIToolButton(this);
     75            {
     76                m_pSourceDiskOpenButton->setAutoRaise(true);
     77                m_pSourceDiskOpenButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_dis_16px.png"));
     78            }
     79            pSourceDiskLayout->addWidget(m_pSourceDiskSelector);
     80            pSourceDiskLayout->addWidget(m_pSourceDiskOpenButton);
    8681        }
    8782        pMainLayout->addWidget(m_pLabel);
    88         pMainLayout->addWidget(m_pSourceDiskCnt);
     83        pMainLayout->addLayout(pSourceDiskLayout);
    8984        pMainLayout->addStretch();
    9085    }
     
    118113                                          "if it is not already selected. You can either choose one from the list "
    119114                                          "or use the folder icon beside the list to select one.</p>"));
    120     m_pSourceDiskCnt->setTitle(UIWizardCloneVD::tr("Hard drive to &copy"));
    121115    m_pSourceDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard drive file to copy..."));
    122116}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.h

    r41372 r41398  
    2525
    2626/* Forward declarations: */
    27 class QGroupBox;
    2827class VBoxMediaComboBox;
    2928class QIToolButton;
     
    4645
    4746    /* Widgets: */
    48     QGroupBox *m_pSourceDiskCnt;
    4947    VBoxMediaComboBox *m_pSourceDiskSelector;
    5048    QIToolButton *m_pSourceDiskOpenButton;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp

    r41372 r41398  
    2121#include <QVBoxLayout>
    2222#include <QButtonGroup>
    23 #include <QGroupBox>
    2423#include <QRadioButton>
    2524
     
    3433}
    3534
    36 QRadioButton* UIWizardCloneVDPage2::addFormatButton(QVBoxLayout *pFormatsLayout, CMediumFormat medFormat)
     35void UIWizardCloneVDPage2::addFormatButton(QWidget *pParent, QVBoxLayout *pFormatLayout, CMediumFormat medFormat)
    3736{
    3837    /* Check that medium format supports creation: */
     
    4039    if (!(uFormatCapabilities & MediumFormatCapabilities_CreateFixed ||
    4140          uFormatCapabilities & MediumFormatCapabilities_CreateDynamic))
    42         return 0;
     41        return;
    4342
    4443    /* Check that medium format supports creation of virtual hard-disks: */
     
    4746    medFormat.DescribeFileExtensions(fileExtensions, deviceTypes);
    4847    if (!deviceTypes.contains(KDeviceType_HardDisk))
    49         return 0;
     48        return;
    5049
    5150    /* Create/add corresponding radio-button: */
    52     QRadioButton *pFormatButton = new QRadioButton(m_pFormatCnt);
    53     pFormatsLayout->addWidget(pFormatButton);
    54     return pFormatButton;
     51    QRadioButton *pFormatButton = new QRadioButton(pParent);
     52    pFormatLayout->addWidget(pFormatButton);
     53    m_formats << medFormat;
     54    m_formatNames << medFormat.GetName();
     55    m_pFormatButtonGroup->addButton(pFormatButton, m_formatNames.size() - 1);
    5556}
    5657
     
    7677    {
    7778        m_pLabel = new QIRichTextLabel(this);
    78         m_pFormatCnt = new QGroupBox(this);
     79        QVBoxLayout *pFormatLayout = new QVBoxLayout;
    7980        {
    80             m_pFormatCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    81             QVBoxLayout *pFormatsLayout = new QVBoxLayout(m_pFormatCnt);
     81            m_pFormatButtonGroup = new QButtonGroup(this);
    8282            {
    83                 m_pFormatButtonGroup = new QButtonGroup(this);
     83                CSystemProperties systemProperties = vboxGlobal().virtualBox().GetSystemProperties();
     84                const QVector<CMediumFormat> &medFormats = systemProperties.GetMediumFormats();
     85                for (int i = 0; i < medFormats.size(); ++i)
    8486                {
    85                     CSystemProperties systemProperties = vboxGlobal().virtualBox().GetSystemProperties();
    86                     const QVector<CMediumFormat> &medFormats = systemProperties.GetMediumFormats();
    87                     for (int i = 0; i < medFormats.size(); ++i)
    88                     {
    89                         const CMediumFormat &medFormat = medFormats[i];
    90                         QString strFormatName(medFormat.GetName());
    91                         if (strFormatName == "VDI")
    92                         {
    93                             QRadioButton *pButton = addFormatButton(pFormatsLayout, medFormat);
    94                             if (pButton)
    95                             {
    96                                 m_formats << medFormat;
    97                                 m_formatNames << strFormatName;
    98                                 m_pFormatButtonGroup->addButton(pButton, m_formatNames.size() - 1);
    99                             }
    100                         }
    101                     }
    102                     for (int i = 0; i < medFormats.size(); ++i)
    103                     {
    104                         const CMediumFormat &medFormat = medFormats[i];
    105                         QString strFormatName(medFormat.GetName());
    106                         if (strFormatName != "VDI")
    107                         {
    108                             QRadioButton *pButton = addFormatButton(pFormatsLayout, medFormat);
    109                             if (pButton)
    110                             {
    111                                 m_formats << medFormat;
    112                                 m_formatNames << strFormatName;
    113                                 m_pFormatButtonGroup->addButton(pButton, m_formatNames.size() - 1);
    114                             }
    115                         }
    116                     }
    117                     m_pFormatButtonGroup->button(0)->click();
    118                     m_pFormatButtonGroup->button(0)->setFocus();
     87                    const CMediumFormat &medFormat = medFormats[i];
     88                    if (medFormat.GetName() == "VDI")
     89                        addFormatButton(this, pFormatLayout, medFormat);
    11990                }
     91                for (int i = 0; i < medFormats.size(); ++i)
     92                {
     93                    const CMediumFormat &medFormat = medFormats[i];
     94                    if (medFormat.GetName() != "VDI")
     95                        addFormatButton(this, pFormatLayout, medFormat);
     96                }
     97                m_pFormatButtonGroup->button(0)->click();
     98                m_pFormatButtonGroup->button(0)->setFocus();
    12099            }
    121100        }
    122101        pMainLayout->addWidget(m_pLabel);
    123         pMainLayout->addWidget(m_pFormatCnt);
     102        pMainLayout->addLayout(pFormatLayout);
    124103        pMainLayout->addStretch();
    125104    }
     
    143122                                          "for the new virtual hard drive. If you do not need to use it "
    144123                                          "with other virtualization software you can leave this setting unchanged."));
    145     m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File &type"));
    146124    QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons();
    147125    for (int i = 0; i < buttons.size(); ++i)
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.h

    r41372 r41398  
    2626/* Forward declarations: */
    2727class QVBoxLayout;
    28 class QGroupBox;
    2928class QButtonGroup;
    3029class QRadioButton;
     
    4039
    4140    /* Helping stuff: */
    42     QRadioButton* addFormatButton(QVBoxLayout *pFormatsLayout, CMediumFormat mediumFormat);
     41    void addFormatButton(QWidget *pParent, QVBoxLayout *pFormatsLayout, CMediumFormat medFormat);
    4342
    4443    /* Stuff for 'mediumFormat' field: */
     
    5049    QList<CMediumFormat> m_formats;
    5150    QStringList m_formatNames;
    52 
    53     /* Widgets: */
    54     QGroupBox *m_pFormatCnt;
    5551};
    5652
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp

    r41372 r41398  
    2020/* Global includes: */
    2121#include <QVBoxLayout>
    22 #include <QGroupBox>
    2322#include <QButtonGroup>
    2423#include <QRadioButton>
     
    8180        m_pFixedLabel = new QIRichTextLabel(this);
    8281        m_pSplitLabel = new QIRichTextLabel(this);
    83         m_pVariantCnt = new QGroupBox(this);
     82        QVBoxLayout *pVariantLayout = new QVBoxLayout;
    8483        {
    85             m_pVariantCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    86             QVBoxLayout *pVariantCntLayout = new QVBoxLayout(m_pVariantCnt);
     84            m_pVariantButtonGroup = new QButtonGroup(this);
    8785            {
    88                 m_pVariantButtonGroup = new QButtonGroup(m_pVariantCnt);
     86                m_pDynamicalButton = new QRadioButton(this);
    8987                {
    90                     m_pDynamicalButton = new QRadioButton(m_pVariantCnt);
    91                     {
    92                         m_pDynamicalButton->click();
    93                         m_pDynamicalButton->setFocus();
    94                     }
    95                     m_pFixedButton = new QRadioButton(m_pVariantCnt);
    96                     m_pVariantButtonGroup->addButton(m_pDynamicalButton, 0);
    97                     m_pVariantButtonGroup->addButton(m_pFixedButton, 1);
     88                    m_pDynamicalButton->click();
     89                    m_pDynamicalButton->setFocus();
    9890                }
    99                 m_pSplitBox = new QCheckBox(m_pVariantCnt);
    100                 pVariantCntLayout->addWidget(m_pDynamicalButton);
    101                 pVariantCntLayout->addWidget(m_pFixedButton);
    102                 pVariantCntLayout->addWidget(m_pSplitBox);
     91                m_pFixedButton = new QRadioButton(this);
     92                m_pVariantButtonGroup->addButton(m_pDynamicalButton, 0);
     93                m_pVariantButtonGroup->addButton(m_pFixedButton, 1);
    10394            }
     95            m_pSplitBox = new QCheckBox(this);
     96            pVariantLayout->addWidget(m_pDynamicalButton);
     97            pVariantLayout->addWidget(m_pFixedButton);
     98            pVariantLayout->addWidget(m_pSplitBox);
    10499        }
    105100        pMainLayout->addWidget(m_pDescriptionLabel);
     
    107102        pMainLayout->addWidget(m_pFixedLabel);
    108103        pMainLayout->addWidget(m_pSplitLabel);
    109         pMainLayout->addWidget(m_pVariantCnt);
     104        pMainLayout->addLayout(pVariantLayout);
    110105        pMainLayout->addStretch();
    111106    }
     
    136131                                               "virtual machine on removable USB devices or old systems, some of which cannot "
    137132                                               "handle very large files."));
    138     m_pVariantCnt->setTitle(UIWizardCloneVD::tr("Storage details"));
    139133    m_pDynamicalButton->setText(UIWizardCloneVD::tr("&Dynamically allocated"));
    140134    m_pFixedButton->setText(UIWizardCloneVD::tr("&Fixed size"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic3.h

    r41372 r41398  
    2424
    2525/* Forward declarations: */
    26 class QGroupBox;
    2726class QButtonGroup;
    2827class QRadioButton;
     
    4342
    4443    /* Widgets: */
    45     QGroupBox *m_pVariantCnt;
    4644    QButtonGroup *m_pVariantButtonGroup;
    4745    QRadioButton *m_pDynamicalButton;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp

    r41372 r41398  
    2222#include <QVBoxLayout>
    2323#include <QHBoxLayout>
    24 #include <QGroupBox>
    2524#include <QLineEdit>
    2625
     
    159158    {
    160159        m_pLabel = new QIRichTextLabel(this);
    161         m_pDestinationCnt = new QGroupBox(this);
     160        QHBoxLayout *pLocationLayout = new QHBoxLayout;
    162161        {
    163             m_pDestinationCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    164             QHBoxLayout *pLocationCntLayout = new QHBoxLayout(m_pDestinationCnt);
     162            m_pDestinationDiskEditor = new QLineEdit(this);
     163            m_pDestinationDiskOpenButton = new QIToolButton(this);
    165164            {
    166                 m_pDestinationDiskEditor = new QLineEdit(m_pDestinationCnt);
    167                 m_pDestinationDiskOpenButton = new QIToolButton(m_pDestinationCnt);
    168                 {
    169                     m_pDestinationDiskOpenButton->setAutoRaise(true);
    170                     m_pDestinationDiskOpenButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", "select_file_dis_16px.png"));
    171                 }
    172                 pLocationCntLayout->addWidget(m_pDestinationDiskEditor);
    173                 pLocationCntLayout->addWidget(m_pDestinationDiskOpenButton);
     165                m_pDestinationDiskOpenButton->setAutoRaise(true);
     166                m_pDestinationDiskOpenButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", "select_file_dis_16px.png"));
    174167            }
     168            pLocationLayout->addWidget(m_pDestinationDiskEditor);
     169            pLocationLayout->addWidget(m_pDestinationDiskOpenButton);
    175170        }
    176171        pMainLayout->addWidget(m_pLabel);
    177         pMainLayout->addWidget(m_pDestinationCnt);
     172        pMainLayout->addLayout(pLocationLayout);
    178173        pMainLayout->addStretch();
    179174    }
     
    202197    m_pLabel->setText(UIWizardCloneVD::tr("Please type the name of the new virtual hard drive file into the box below or "
    203198                                          "click on the folder icon to select a different folder to create the file in."));
    204     m_pDestinationCnt->setTitle(UIWizardCloneVD::tr("Copy &location"));
    205199    m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a location for new virtual hard drive file..."));
    206200}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic4.h

    r41372 r41398  
    2929/* Forward declarations: */
    3030class CMediumFormat;
    31 class QGroupBox;
    3231class QLineEdit;
    3332class QIToolButton;
     
    6160
    6261    /* Widgets: */
    63     QGroupBox *m_pDestinationCnt;
    6462    QLineEdit *m_pDestinationDiskEditor;
    6563    QIToolButton *m_pDestinationDiskOpenButton;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp

    r41372 r41398  
    7878            pLocationCntLayout->addWidget(m_pDestinationDiskOpenButton);
    7979        }
    80         QVBoxLayout *pFormatWrappingLayout = new QVBoxLayout;
    81         {
    82             m_pFormatCnt = new QGroupBox(this);
    83             {
    84                 m_pFormatCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    85                 QVBoxLayout *pFormatsLayout = new QVBoxLayout(m_pFormatCnt);
    86                 {
    87                     m_pFormatButtonGroup = new QButtonGroup(this);
     80        m_pFormatCnt = new QGroupBox(this);
     81        {
     82            m_pFormatCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
     83            QVBoxLayout *pFormatCntLayout = new QVBoxLayout(m_pFormatCnt);
     84            {
     85                m_pFormatButtonGroup = new QButtonGroup(this);
     86                {
     87                    CSystemProperties systemProperties = vboxGlobal().virtualBox().GetSystemProperties();
     88                    const QVector<CMediumFormat> &medFormats = systemProperties.GetMediumFormats();
     89                    for (int i = 0; i < medFormats.size(); ++i)
    8890                    {
    89                         CSystemProperties systemProperties = vboxGlobal().virtualBox().GetSystemProperties();
    90                         const QVector<CMediumFormat> &medFormats = systemProperties.GetMediumFormats();
    91                         for (int i = 0; i < medFormats.size(); ++i)
    92                         {
    93                             const CMediumFormat &medFormat = medFormats[i];
    94                             QString strFormatName(medFormat.GetName());
    95                             if (strFormatName == "VDI")
    96                             {
    97                                 QRadioButton *pButton = addFormatButton(pFormatsLayout, medFormat);
    98                                 if (pButton)
    99                                 {
    100                                     m_formats << medFormat;
    101                                     m_formatNames << strFormatName;
    102                                     m_pFormatButtonGroup->addButton(pButton, m_formatNames.size() - 1);
    103                                 }
    104                             }
    105                         }
    106                         for (int i = 0; i < medFormats.size(); ++i)
    107                         {
    108                             const CMediumFormat &medFormat = medFormats[i];
    109                             QString strFormatName(medFormat.GetName());
    110                             if (strFormatName != "VDI")
    111                             {
    112                                 QRadioButton *pButton = addFormatButton(pFormatsLayout, medFormat);
    113                                 if (pButton)
    114                                 {
    115                                     m_formats << medFormat;
    116                                     m_formatNames << strFormatName;
    117                                     m_pFormatButtonGroup->addButton(pButton, m_formatNames.size() - 1);
    118                                 }
    119                             }
    120                         }
    121                         m_pFormatButtonGroup->button(0)->click();
    122                         m_pFormatButtonGroup->button(0)->setFocus();
     91                        const CMediumFormat &medFormat = medFormats[i];
     92                        if (medFormat.GetName() == "VDI")
     93                            addFormatButton(m_pFormatCnt, pFormatCntLayout, medFormat);
    12394                    }
    124                 }
    125             }
    126             QSpacerItem *m_pSizeSpacer = new QSpacerItem(0, 0, QSizePolicy::Fixed, QSizePolicy::Expanding);
    127             pFormatWrappingLayout->addWidget(m_pFormatCnt);
    128             pFormatWrappingLayout->addItem(m_pSizeSpacer);
    129         }
    130         QVBoxLayout *pVariantWrappingLayout = new QVBoxLayout;
    131         {
    132             m_pVariantCnt = new QGroupBox(this);
    133             {
    134                 m_pVariantCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    135                 QVBoxLayout *pVariantCntLayout = new QVBoxLayout(m_pVariantCnt);
    136                 {
    137                     m_pVariantButtonGroup = new QButtonGroup(m_pVariantCnt);
     95                    for (int i = 0; i < medFormats.size(); ++i)
    13896                    {
    139                         m_pDynamicalButton = new QRadioButton(m_pVariantCnt);
    140                         {
    141                             m_pDynamicalButton->click();
    142                             m_pDynamicalButton->setFocus();
    143                         }
    144                         m_pFixedButton = new QRadioButton(m_pVariantCnt);
    145                         m_pVariantButtonGroup->addButton(m_pDynamicalButton, 0);
    146                         m_pVariantButtonGroup->addButton(m_pFixedButton, 1);
     97                        const CMediumFormat &medFormat = medFormats[i];
     98                        if (medFormat.GetName() != "VDI")
     99                            addFormatButton(m_pFormatCnt, pFormatCntLayout, medFormat);
    147100                    }
    148                     m_pSplitBox = new QCheckBox(m_pVariantCnt);
    149                     pVariantCntLayout->addWidget(m_pDynamicalButton);
    150                     pVariantCntLayout->addWidget(m_pFixedButton);
    151                     pVariantCntLayout->addWidget(m_pSplitBox);
    152                 }
    153             }
    154             QSpacerItem *m_pSizeSpacer = new QSpacerItem(0, 0, QSizePolicy::Fixed, QSizePolicy::Expanding);
    155             pVariantWrappingLayout->addWidget(m_pVariantCnt);
    156             pVariantWrappingLayout->addItem(m_pSizeSpacer);
     101                    m_pFormatButtonGroup->button(0)->click();
     102                    m_pFormatButtonGroup->button(0)->setFocus();
     103                }
     104            }
     105        }
     106        m_pVariantCnt = new QGroupBox(this);
     107        {
     108            m_pVariantCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
     109            QVBoxLayout *pVariantCntLayout = new QVBoxLayout(m_pVariantCnt);
     110            {
     111                m_pVariantButtonGroup = new QButtonGroup(m_pVariantCnt);
     112                {
     113                    m_pDynamicalButton = new QRadioButton(m_pVariantCnt);
     114                    {
     115                        m_pDynamicalButton->click();
     116                        m_pDynamicalButton->setFocus();
     117                    }
     118                    m_pFixedButton = new QRadioButton(m_pVariantCnt);
     119                    m_pVariantButtonGroup->addButton(m_pDynamicalButton, 0);
     120                    m_pVariantButtonGroup->addButton(m_pFixedButton, 1);
     121                }
     122                m_pSplitBox = new QCheckBox(m_pVariantCnt);
     123                pVariantCntLayout->addWidget(m_pDynamicalButton);
     124                pVariantCntLayout->addWidget(m_pFixedButton);
     125                pVariantCntLayout->addWidget(m_pSplitBox);
     126            }
    157127        }
    158128        pMainLayout->addWidget(m_pSourceDiskCnt, 0, 0, 1, 2);
    159129        pMainLayout->addWidget(m_pDestinationCnt, 1, 0, 1, 2);
    160         pMainLayout->addLayout(pFormatWrappingLayout, 2, 0);
    161         pMainLayout->addLayout(pVariantWrappingLayout, 2, 1);
     130        pMainLayout->addWidget(m_pFormatCnt, 2, 0, Qt::AlignTop);
     131        pMainLayout->addWidget(m_pVariantCnt, 2, 1, Qt::AlignTop);
    162132        sltHandleSourceDiskChange();
    163133        sltMediumFormatChanged();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.h

    r41372 r41398  
    2525#include "UIWizardCloneVDPageBasic3.h"
    2626#include "UIWizardCloneVDPageBasic4.h"
     27
     28/* Forward declarations: */
     29class QGroupBox;
    2730
    2831/* Expert page of the Clone Virtual Hard Drive wizard: */
     
    7578    bool isComplete() const;
    7679    bool validatePage();
     80
     81    /* Widgets: */
     82    QGroupBox *m_pSourceDiskCnt;
     83    QGroupBox *m_pFormatCnt;
     84    QGroupBox *m_pVariantCnt;
     85    QGroupBox *m_pDestinationCnt;
    7786};
    7887
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