diff --git a/src/gui/nmcgui/nmcfolderwizardsourcepage.cpp b/src/gui/nmcgui/nmcfolderwizardsourcepage.cpp index f4148f5aad3de..1148c3420cd8e 100644 --- a/src/gui/nmcgui/nmcfolderwizardsourcepage.cpp +++ b/src/gui/nmcgui/nmcfolderwizardsourcepage.cpp @@ -17,10 +17,9 @@ namespace OCC { -NMCFolderWizardSourcePage::NMCFolderWizardSourcePage() - :FolderWizardSourcePage() -{ - +NMCFolderWizardSourcePage::NMCFolderWizardSourcePage(QWidget *parent) + : QWidget(parent) { + setupUi(this); } void NMCFolderWizardSourcePage::setDefaultSettings() diff --git a/src/gui/nmcgui/nmcfolderwizardsourcepage.h b/src/gui/nmcgui/nmcfolderwizardsourcepage.h index 860bd2ce3289a..d80097b2bacc5 100644 --- a/src/gui/nmcgui/nmcfolderwizardsourcepage.h +++ b/src/gui/nmcgui/nmcfolderwizardsourcepage.h @@ -15,6 +15,7 @@ #ifndef MIRALL_NMCFolderWizardSourcePage_H #define MIRALL_NMCFolderWizardSourcePage_H +#include #include "ui_folderwizardsourcepage.h" /** @@ -27,30 +28,30 @@ namespace OCC { -class NMCFolderWizardSourcePage : public ::Ui::FolderWizardSourcePage -{ - -public: - /** - * @brief Constructs an instance of NMCFolderWizardSourcePage. - */ - explicit NMCFolderWizardSourcePage(); - - /** - * @brief Destroys the NMCFolderWizardSourcePage instance. - */ - ~NMCFolderWizardSourcePage() = default; - - /** - * @brief Sets default settings for the NMCFolderWizardSourcePage. - */ - void setDefaultSettings(); - - /** - * @brief Changes the layout of the NMCFolderWizardSourcePage. - */ - void changeLayout(); -}; +class NMCFolderWizardSourcePage : public QWidget, private Ui::FolderWizardSourcePage { + Q_OBJECT + + public: + /** + * @brief Constructs an instance of NMCFolderWizardSourcePage. + */ + explicit NMCFolderWizardSourcePage(QWidget *parent = nullptr); + + /** + * @brief Destroys the NMCFolderWizardSourcePage instance. + */ + ~NMCFolderWizardSourcePage() = default; + + /** + * @brief Sets default settings for the NMCFolderWizardSourcePage. + */ + void setDefaultSettings(); + + /** + * @brief Changes the layout of the NMCFolderWizardSourcePage. + */ + void changeLayout(); + }; } // namespace OCC diff --git a/src/gui/nmcgui/nmcfolderwizardtargetpage.cpp b/src/gui/nmcgui/nmcfolderwizardtargetpage.cpp index 7ac786e29ab40..57d25bc2a9990 100644 --- a/src/gui/nmcgui/nmcfolderwizardtargetpage.cpp +++ b/src/gui/nmcgui/nmcfolderwizardtargetpage.cpp @@ -17,9 +17,9 @@ namespace OCC { -NMCFolderWizardTargetPage::NMCFolderWizardTargetPage() - :Ui::FolderWizardTargetPage() -{ +NMCFolderWizardTargetPage::NMCFolderWizardTargetPage(QWidget *parent) + : QWidget(parent) { + setupUi(this); } void NMCFolderWizardTargetPage::setDefaultSettings() diff --git a/src/gui/nmcgui/nmcfolderwizardtargetpage.h b/src/gui/nmcgui/nmcfolderwizardtargetpage.h index 1fd51ca9a8bc7..a6a7ab9705b3f 100644 --- a/src/gui/nmcgui/nmcfolderwizardtargetpage.h +++ b/src/gui/nmcgui/nmcfolderwizardtargetpage.h @@ -15,6 +15,7 @@ #ifndef MIRALL_NMCFolderWizardTargetPage_H #define MIRALL_NMCFolderWizardTargetPage_H +#include #include "ui_folderwizardtargetpage.h" /** @@ -26,31 +27,30 @@ */ namespace OCC { - -class NMCFolderWizardTargetPage : public ::Ui::FolderWizardTargetPage -{ - -public: - /** - * @brief Constructs an instance of NMCFolderWizardTargetPage. - */ - explicit NMCFolderWizardTargetPage(); - - /** - * @brief Destroys the NMCFolderWizardTargetPage instance. - */ - ~NMCFolderWizardTargetPage() = default; - - /** - * @brief Sets default settings for the NMCFolderWizardTargetPage. - */ - void setDefaultSettings(); - - /** - * @brief Sets the layout for the NMCFolderWizardTargetPage. - */ - void setLayout(); -}; + class NMCFolderWizardTargetPage : public QWidget, private Ui::FolderWizardTargetPage { + Q_OBJECT + + public: + /** + * @brief Constructs an instance of NMCFolderWizardTargetPage. + */ + NMCFolderWizardTargetPage(QWidget *parent = nullptr); + + /** + * @brief Destroys the NMCFolderWizardTargetPage instance. + */ + ~NMCFolderWizardTargetPage() = default; + + /** + * @brief Sets default settings for the NMCFolderWizardTargetPage. + */ + void setDefaultSettings(); + + /** + * @brief Sets the layout for the NMCFolderWizardTargetPage. + */ + void setLayout(); + }; } // namespace OCC