VirtualBox

Ignore:
Timestamp:
Sep 19, 2024 11:23:01 AM (5 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164869
Message:

FE/Qt: ​bugref:10765. Align content of the username etc. group box.

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

Legend:

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

    r106084 r106094  
    164164        return;
    165165    setLayout(m_pMainLayout);
     166    m_pMainLayout->setContentsMargins(0, 0, 0, 0);
    166167    int iRow = 0;
    167168
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.cpp

    r106084 r106094  
    6262{
    6363    QVBoxLayout *pUserNameContainerLayout = new QVBoxLayout(this);
     64    pUserNameContainerLayout->setContentsMargins(0, 0, 0, 0);
    6465    m_pUserNamePasswordEditor = new UIUserNamePasswordEditor;
    6566    AssertReturnVoid(m_pUserNamePasswordEditor);
    6667    m_pUserNamePasswordEditor->setLabelsVisible(true);
    67     pUserNameContainerLayout->addWidget(m_pUserNamePasswordEditor);
    68 
     68    pUserNameContainerLayout->addWidget(m_pUserNamePasswordEditor, Qt::AlignTop);
     69    pUserNameContainerLayout->setStretch(0, 0);
    6970    connect(m_pUserNamePasswordEditor, &UIUserNamePasswordEditor::sigPasswordChanged,
    7071            this, &UIUserNamePasswordGroupBox::sigPasswordChanged);
     
    7475    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
    7576            this, &UIUserNamePasswordGroupBox::sltRetranslateUI);
     77    pUserNameContainerLayout->addStretch(1);
    7678}
    7779
     
    231233void UIAdditionalUnattendedOptions::prepare()
    232234{
    233     m_pMainLayout = new QHBoxLayout(this);
     235    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
    234236    m_pHostnameDomainNameEditor = new UIHostnameDomainNameEditor;
    235237    if (m_pHostnameDomainNameEditor)
    236         m_pMainLayout->addWidget(m_pHostnameDomainNameEditor);
    237 
     238        pMainLayout->addWidget(m_pHostnameDomainNameEditor, Qt::AlignTop);
     239    pMainLayout->setStretch(0, 0);
    238240    if (m_pHostnameDomainNameEditor)
    239241    {
     
    249251    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
    250252            this, &UIAdditionalUnattendedOptions::sltRetranslateUI);
     253    pMainLayout->addStretch(1);
    251254}
    252255
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.h

    r106084 r106094  
    153153
    154154    UIHostnameDomainNameEditor *m_pHostnameDomainNameEditor;
    155     QHBoxLayout *m_pMainLayout;
    156155};
    157156
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