VirtualBox

Changeset 84018 in vbox


Ignore:
Timestamp:
Apr 27, 2020 4:28:23 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137587
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Cloud VM settings dialog: Make dialog page configurable to be of full or short size.

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

Legend:

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

    r84010 r84018  
    2727
    2828
    29 UICloudMachineSettingsDialogPage::UICloudMachineSettingsDialogPage(QWidget *pParent)
     29UICloudMachineSettingsDialogPage::UICloudMachineSettingsDialogPage(QWidget *pParent, bool fFullScale /* = true */)
    3030    : QWidget(pParent)
     31    , m_fFullScale(fFullScale)
    3132{
    3233    prepare();
     
    6970            if (iDefaultSectionHeight > 0)
    7071            {
    71                 const int iProposedHeight = iDefaultSectionHeight * 12;
     72                const int iProposedHeight = iDefaultSectionHeight * (m_fFullScale ? 12 : 6);
    7273                const int iProposedWidth = iProposedHeight * 1.66;
    7374                m_pFormEditor->setMinimumSize(iProposedWidth, iProposedHeight);
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/machinesettings/UICloudMachineSettingsDialogPage.h

    r84010 r84018  
    4545public:
    4646
    47     /** Constructs cloud machine settings dialog page passing @a pParent to the base-class. */
    48     UICloudMachineSettingsDialogPage(QWidget *pParent);
     47    /** Constructs cloud machine settings dialog page passing @a pParent to the base-class.
     48      * @param  fFullScale  Brings whether this page is full-scale and should reflect at least 12 fields. */
     49    UICloudMachineSettingsDialogPage(QWidget *pParent, bool fFullScale = true);
    4950
    5051    /** Returns page form. */
     
    7172    void updateEditor();
    7273
     74    /** Holds whether this page is full-scale and should reflect at least 12 fields. */
     75    bool  m_fFullScale;
     76
    7377    /** Holds the form editor widget instance. */
    7478    UIFormEditorWidgetPointer  m_pFormEditor;
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