VirtualBox

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


Ignore:
Timestamp:
Apr 27, 2020 12:13:44 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Cloud VM settings dialog: Make dialog page store form as well, it can be useful.

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

    r83963 r84006  
    2323#include "UICloudMachineSettingsDialogPage.h"
    2424
     25/* Other VBox includes: */
     26#include "iprt/assert.h"
     27
    2528
    2629UICloudMachineSettingsDialogPage::UICloudMachineSettingsDialogPage(QWidget *pParent)
     
    3235void UICloudMachineSettingsDialogPage::setForm(const CForm &comForm)
    3336{
    34     if (m_pFormEditor)
    35         m_pFormEditor->setForm(comForm);
     37    m_comForm = comForm;
     38    AssertPtrReturnVoid(m_pFormEditor.data());
     39    m_pFormEditor->setForm(m_comForm);
    3640}
    3741
    3842void UICloudMachineSettingsDialogPage::makeSureDataCommitted()
    3943{
    40     if (m_pFormEditor)
    41         m_pFormEditor->makeSureEditorDataCommitted();
     44    AssertPtrReturnVoid(m_pFormEditor.data());
     45    m_pFormEditor->makeSureEditorDataCommitted();
    4246}
    4347
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/machinesettings/UICloudMachineSettingsDialogPage.h

    r83963 r84006  
    2929#include "UIFormEditorWidget.h"
    3030
    31 /* Forward declarations: */
    32 class CForm;
     31/* COM includes: */
     32#include "COMEnums.h"
     33#include "CForm.h"
    3334
    3435/** Cloud machine settings dialog page. */
     
    4142    /** Constructs cloud machine settings dialog page passing @a pParent to the base-class. */
    4243    UICloudMachineSettingsDialogPage(QWidget *pParent);
     44
     45    /** Returns page form. */
     46    CForm form() const { return m_comForm; }
     47
     48public slots:
    4349
    4450    /** Defines page @a comForm. */
     
    5561    /** Holds the form editor widget instance. */
    5662    UIFormEditorWidgetPointer  m_pFormEditor;
     63
     64    /** Holds the page form. */
     65    CForm  m_comForm;
    5766};
    5867
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