VirtualBox

Changeset 91412 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 27, 2021 4:42:23 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: A bit of refactoring for New Cloud VM wizard; Get rid of excessive includes and adjust prepare cascade stuff.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r91411 r91412  
    2727#include "QIToolButton.h"
    2828#include "UICloudNetworkingStuff.h"
     29#include "UIFormEditorWidget.h"
    2930#include "UIIconPool.h"
    3031#include "UIMessageCenter.h"
     
    4950    , m_pSourceImageList(0)
    5051    , m_pSettingsCnt(0)
     52    , m_pFormEditor(0)
    5153{
    5254    /* Prepare main layout: */
     
    183185                    const int iTotalHeight = 8 * iSectionHeight;
    184186                    m_pFormEditor->setMinimumSize(QSize(iTotalWidth, iTotalHeight));
    185                     /* Setup connections: */
    186                     connect(m_pFormEditor, &UIFormEditorWidget::sigProgressStarted,
    187                             this, &UIWizardNewCloudVMPageExpert::sigProgressStarted);
    188                     connect(m_pFormEditor, &UIFormEditorWidget::sigProgressChange,
    189                             this, &UIWizardNewCloudVMPageExpert::sigProgressChange);
    190                     connect(m_pFormEditor, &UIFormEditorWidget::sigProgressFinished,
    191                             this, &UIWizardNewCloudVMPageExpert::sigProgressFinished);
    192187
    193188                    /* Add into layout: */
     
    216211    connect(m_pSourceImageList, &QListWidget::currentRowChanged,
    217212            this, &UIWizardNewCloudVMPageExpert::sltHandleSourceImageChange);
     213    connect(m_pFormEditor, &UIFormEditorWidget::sigProgressStarted,
     214            this, &UIWizardNewCloudVMPageExpert::sigProgressStarted);
     215    connect(m_pFormEditor, &UIFormEditorWidget::sigProgressChange,
     216            this, &UIWizardNewCloudVMPageExpert::sigProgressChange);
     217    connect(m_pFormEditor, &UIFormEditorWidget::sigProgressFinished,
     218            this, &UIWizardNewCloudVMPageExpert::sigProgressFinished);
    218219}
    219220
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h

    r91367 r91412  
    114114
    115115    /** Holds the settings container instance. */
    116     QGroupBox                 *m_pSettingsCnt;
     116    QGroupBox          *m_pSettingsCnt;
    117117    /** Holds the Form Editor widget instance. */
    118     UIFormEditorWidgetPointer  m_pFormEditor;
     118    UIFormEditorWidget *m_pFormEditor;
    119119};
    120120
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp

    r91411 r91412  
    2222/* GUI includes: */
    2323#include "QIRichTextLabel.h"
     24#include "UIFormEditorWidget.h"
    2425#include "UIMessageCenter.h"
    2526#include "UIWizardNewCloudVM.h"
     
    3435*********************************************************************************************************************************/
    3536
    36 void UIWizardNewCloudVMProperties::refreshFormPropertiesTable(UIFormEditorWidgetPointer pFormEditor,
     37void UIWizardNewCloudVMProperties::refreshFormPropertiesTable(UIFormEditorWidget *pFormEditor,
    3738                                                              const CVirtualSystemDescriptionForm &comForm)
    3839{
    3940    /* Sanity check: */
    40     AssertPtrReturnVoid(pFormEditor.data());
     41    AssertPtrReturnVoid(pFormEditor);
    4142    AssertReturnVoid(comForm.isNotNull());
    4243
     
    5152
    5253UIWizardNewCloudVMPageProperties::UIWizardNewCloudVMPageProperties()
     54    : m_pLabel(0)
     55    , m_pFormEditor(0)
    5356{
    5457    /* Prepare main layout: */
     
    7174            if (iDefaultSectionHeight > 0)
    7275                m_pFormEditor->setMinimumHeight(8 * iDefaultSectionHeight);
    73             /* Setup connections: */
    74             connect(m_pFormEditor, &UIFormEditorWidget::sigProgressStarted,
    75                     this, &UIWizardNewCloudVMPageProperties::sigProgressStarted);
    76             connect(m_pFormEditor, &UIFormEditorWidget::sigProgressChange,
    77                     this, &UIWizardNewCloudVMPageProperties::sigProgressChange);
    78             connect(m_pFormEditor, &UIFormEditorWidget::sigProgressFinished,
    79                     this, &UIWizardNewCloudVMPageProperties::sigProgressFinished);
    8076
    8177            /* Add into layout: */
     
    8379        }
    8480    }
     81
     82    /* Setup connections: */
     83    connect(m_pFormEditor, &UIFormEditorWidget::sigProgressStarted,
     84            this, &UIWizardNewCloudVMPageProperties::sigProgressStarted);
     85    connect(m_pFormEditor, &UIFormEditorWidget::sigProgressChange,
     86            this, &UIWizardNewCloudVMPageProperties::sigProgressChange);
     87    connect(m_pFormEditor, &UIFormEditorWidget::sigProgressFinished,
     88            this, &UIWizardNewCloudVMPageProperties::sigProgressFinished);
    8589}
    8690
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h

    r91410 r91412  
    2323
    2424/* GUI includes: */
    25 #include "UIFormEditorWidget.h"
    2625#include "UINativeWizardPage.h"
    2726
    2827/* COM includes: */
    29 #include "COMEnums.h"
    30 #include "CCloudClient.h"
    31 #include "CVirtualSystemDescription.h"
    3228#include "CVirtualSystemDescriptionForm.h"
    3329
    3430/* Forward declarations: */
    3531class QIRichTextLabel;
     32class UIFormEditorWidget;
    3633class UIWizardNewCloudVM;
    3734
     
    4037{
    4138    /** Refreshes @a pFormEditor on the basis of comForm specified. */
    42     void refreshFormPropertiesTable(UIFormEditorWidgetPointer pFormEditor, const CVirtualSystemDescriptionForm &comForm);
     39    void refreshFormPropertiesTable(UIFormEditorWidget *pFormEditor, const CVirtualSystemDescriptionForm &comForm);
    4340}
    4441
     
    8279
    8380    /** Holds the Form Editor widget instance. */
    84     UIFormEditorWidgetPointer  m_pFormEditor;
     81    UIFormEditorWidget *m_pFormEditor;
    8582};
    8683
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