VirtualBox

Changeset 41401 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 22, 2012 4:23:13 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78113
Message:

FE/Qt: First Run wizard: Removing group-box.

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

Legend:

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

    r41400 r41401  
    410410            break;
    411411        case UIWizardType_FirstRun:
    412             dRatio += 0.4;
     412            dRatio += 0.3;
    413413            break;
    414414        default:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp

    r41373 r41401  
    2121#include <QVBoxLayout>
    2222#include <QHBoxLayout>
    23 #include <QGroupBox>
    2423
    2524/* Local includes: */
     
    6665        pMainLayout->setContentsMargins(8, 0, 8, 0);
    6766        m_pLabel = new QIRichTextLabel(this);
    68         m_pSourceCnt = new QGroupBox(this);
     67        QHBoxLayout *pSourceDiskLayout = new QHBoxLayout;
    6968        {
    70             m_pSourceCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
    71             QHBoxLayout *pSourceCntLayout = new QHBoxLayout(m_pSourceCnt);
     69            m_pMediaSelector = new VBoxMediaComboBox(this);
    7270            {
    73                 m_pMediaSelector = new VBoxMediaComboBox(m_pSourceCnt);
    74                 {
    75                     m_pMediaSelector->setMachineId(strMachineId);
    76                     m_pMediaSelector->setType(VBoxDefs::MediumType_DVD);
    77                     m_pMediaSelector->repopulate();
    78                 }
    79                 m_pSelectMediaButton = new QIToolButton(m_pSourceCnt);
    80                 {
    81                     m_pSelectMediaButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_dis_16px.png"));
    82                     m_pSelectMediaButton->setAutoRaise(true);
    83                 }
    84                 pSourceCntLayout->addWidget(m_pMediaSelector);
    85                 pSourceCntLayout->addWidget(m_pSelectMediaButton);
     71                m_pMediaSelector->setMachineId(strMachineId);
     72                m_pMediaSelector->setType(VBoxDefs::MediumType_DVD);
     73                m_pMediaSelector->repopulate();
    8674            }
     75            m_pSelectMediaButton = new QIToolButton(this);
     76            {
     77                m_pSelectMediaButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_dis_16px.png"));
     78                m_pSelectMediaButton->setAutoRaise(true);
     79            }
     80            pSourceDiskLayout->addWidget(m_pMediaSelector);
     81            pSourceDiskLayout->addWidget(m_pSelectMediaButton);
    8782        }
    8883        pMainLayout->addWidget(m_pLabel);
    89         pMainLayout->addWidget(m_pSourceCnt);
     84        pMainLayout->addLayout(pSourceDiskLayout);
    9085        pMainLayout->addStretch();
    9186    }
     
    126121                                               "As this virtual machine has no hard drive "
    127122                                               "you will not be able to install an operating system on it at the moment.</p>"));
    128     m_pSourceCnt->setTitle(UIWizardFirstRun::tr("Start-up disk"));
    129123    m_pSelectMediaButton->setToolTip(UIWizardFirstRun::tr("Choose a virtual optical disk file..."));
    130124}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.h

    r41373 r41401  
    2525/* Forward declarations: */
    2626class CMachine;
    27 class QGroupBox;
    2827class VBoxMediaComboBox;
    2928class QIToolButton;
     
    4948
    5049    /* Widgets: */
    51     QGroupBox *m_pSourceCnt;
    5250    VBoxMediaComboBox *m_pMediaSelector;
    5351    QIToolButton *m_pSelectMediaButton;
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