VirtualBox

Changeset 74892 in vbox


Ignore:
Timestamp:
Oct 17, 2018 6:39:52 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125886
Message:

FE/Qt: bugref:9230: UICloudProfileDetailsWidget: Few missed bits (button-box related).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/cloud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileDetailsWidget.cpp

    r74853 r74892  
    104104    if (pLayout)
    105105    {
    106         /* Configure layout: */
    107         pLayout->setContentsMargins(0, 0, 0, 0);
     106        /// @todo sync layout margins with other tools!
    108107
    109108        /* Create tab-widget: */
     
    113112            /* Add into layout: */
    114113            pLayout->addWidget(m_pTableWidget);
     114        }
     115
     116        /* If parent embedded into stack: */
     117        if (m_enmEmbedding == EmbedTo_Stack)
     118        {
     119            /* Create button-box: */
     120            m_pButtonBox = new QIDialogButtonBox;
     121            AssertPtrReturnVoid(m_pButtonBox);
     122            /* Configure button-box: */
     123            m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
     124            connect(m_pButtonBox, &QIDialogButtonBox::clicked, this, &UICloudProfileDetailsWidget::sltHandleButtonBoxClick);
     125
     126            /* Add into layout: */
     127            pLayout->addWidget(m_pButtonBox);
    115128        }
    116129    }
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileDetailsWidget.h

    r74880 r74892  
    149149        /** Revalidates changes for passed @a pWidget. */
    150150        void revalidate(QWidget *pWidget = 0);
     151
    151152        /** Retranslates validation for passed @a pWidget. */
    152153        void retranslateValidation(QWidget *pWidget = 0);
     154
    153155        /** Updates button states. */
    154156        void updateButtonStates();
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