VirtualBox

Changeset 85849 in vbox


Ignore:
Timestamp:
Aug 20, 2020 6:41:21 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9812: VM settings / General page: Small fix forgotten in r139974.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp

    r85838 r85849  
    653653            {
    654654                m_pLabelSnapshotFolder->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
    655                 pLayoutAdvanced->addWidget(m_pLabelSnapshotFolder, 0, 0, 1, 1);
     655                pLayoutAdvanced->addWidget(m_pLabelSnapshotFolder, 0, 0);
    656656            }
    657657            /* Prepare snapshot folder editor: */
     
    669669            {
    670670                m_pLabelClipboard->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
    671                 pLayoutAdvanced->addWidget(m_pLabelClipboard, 1, 0, 1, 1);
     671                pLayoutAdvanced->addWidget(m_pLabelClipboard, 1, 0);
    672672            }
    673673            /* Prepare clipboard combo: */
     
    677677                if (m_pLabelClipboard)
    678678                    m_pLabelClipboard->setBuddy(m_pComboClipboard);
    679                 pLayoutAdvanced->addWidget(m_pComboClipboard, 1, 1, 1, 1);
     679                pLayoutAdvanced->addWidget(m_pComboClipboard, 1, 1);
    680680            }
    681681
     
    685685            {
    686686                m_pLabelDragAndDrop->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
    687                 pLayoutAdvanced->addWidget(m_pLabelDragAndDrop, 2, 0, 1, 1);
     687                pLayoutAdvanced->addWidget(m_pLabelDragAndDrop, 2, 0);
    688688            }
    689689            /* Prepare drag&drop combo: */
     
    693693                if (m_pLabelDragAndDrop)
    694694                    m_pLabelDragAndDrop->setBuddy(m_pComboDragAndDrop);
    695                 pLayoutAdvanced->addWidget(m_pComboDragAndDrop, 2, 1, 1, 1);
     695                pLayoutAdvanced->addWidget(m_pComboDragAndDrop, 2, 1);
    696696            }
    697697        }
     
    749749            QSpacerItem *pSpacerItem = new QSpacerItem(20, 0, QSizePolicy::Fixed, QSizePolicy::Minimum);
    750750            if (pSpacerItem)
    751                 pLayoutEncryption->addItem(pSpacerItem, 1, 0, 1, 1);
     751                pLayoutEncryption->addItem(pSpacerItem, 1, 0);
    752752
    753753            /* Prepare encryption settings widget: */
     
    766766                    {
    767767                        m_pLabelCipher->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
    768                         m_pLayoutEncryptionSettings->addWidget(m_pLabelCipher, 0, 0, 1, 1);
     768                        m_pLayoutEncryptionSettings->addWidget(m_pLabelCipher, 0, 0);
    769769                    }
    770770                    /* Prepare encryption cipher combo: */
     
    778778                        if (m_pLabelCipher)
    779779                            m_pLabelCipher->setBuddy(m_pComboCipher);
    780                         m_pLayoutEncryptionSettings->addWidget(m_pComboCipher, 0, 1, 1, 1);
     780                        m_pLayoutEncryptionSettings->addWidget(m_pComboCipher, 0, 1);
    781781                    }
    782782
     
    786786                    {
    787787                        m_pLabelEncryptionPassword->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
    788                         m_pLayoutEncryptionSettings->addWidget(m_pLabelEncryptionPassword, 1, 0, 1, 1);
     788                        m_pLayoutEncryptionSettings->addWidget(m_pLabelEncryptionPassword, 1, 0);
    789789                    }
    790790                    /* Prepare encryption password editor: */
     
    795795                        if (m_pLabelEncryptionPassword)
    796796                            m_pLabelEncryptionPassword->setBuddy(m_pEditorEncryptionPassword);
    797                         m_pLayoutEncryptionSettings->addWidget(m_pEditorEncryptionPassword, 1, 1, 1, 1);
     797                        m_pLayoutEncryptionSettings->addWidget(m_pEditorEncryptionPassword, 1, 1);
    798798                    }
    799799
     
    803803                    {
    804804                        m_pLabelEncryptionPasswordConfirm->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
    805                         m_pLayoutEncryptionSettings->addWidget(m_pLabelEncryptionPasswordConfirm, 2, 0, 1, 1);
     805                        m_pLayoutEncryptionSettings->addWidget(m_pLabelEncryptionPasswordConfirm, 2, 0);
    806806                    }
    807807                    /* Prepare encryption confirm password editor: */
     
    812812                        if (m_pLabelEncryptionPasswordConfirm)
    813813                            m_pLabelEncryptionPasswordConfirm->setBuddy(m_pEditorEncryptionPasswordConfirm);
    814                         m_pLayoutEncryptionSettings->addWidget(m_pEditorEncryptionPasswordConfirm, 2, 1, 1, 1);
     814                        m_pLayoutEncryptionSettings->addWidget(m_pEditorEncryptionPasswordConfirm, 2, 1);
    815815                    }
    816816                }
    817817
    818                 pLayoutEncryption->addWidget(m_pWidgetEncryptionSettings, 1, 1, 1, 1);
     818                pLayoutEncryption->addWidget(m_pWidgetEncryptionSettings, 1, 1);
    819819            }
    820820        }
     
    860860void UIMachineSettingsGeneral::repopulateComboClipboardMode()
    861861{
    862     /* Clipboard mode combo-box created in the .ui file. */
    863862    AssertPtrReturnVoid(m_pComboClipboard);
    864863    {
     
    882881void UIMachineSettingsGeneral::repopulateComboDnDMode()
    883882{
    884     /* DnD mode combo-box created in the .ui file. */
    885883    AssertPtrReturnVoid(m_pComboDragAndDrop);
    886884    {
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