From d11d642cfe4aec4b7a5784a4b62d226f350c25bc Mon Sep 17 00:00:00 2001 From: Achraf k Date: Thu, 17 Feb 2022 02:30:43 +0100 Subject: [PATCH] Menu => md namespace. --- components/qtmaterialmenu.cpp | 10 ++++++++-- components/qtmaterialmenu.h | 9 ++++++--- components/qtmaterialmenu_internal.cpp | 6 ++++++ components/qtmaterialmenu_internal.h | 3 +++ components/qtmaterialmenu_p.h | 3 +++ 5 files changed, 26 insertions(+), 5 deletions(-) diff --git a/components/qtmaterialmenu.cpp b/components/qtmaterialmenu.cpp index 5808a99..a6ff169 100644 --- a/components/qtmaterialmenu.cpp +++ b/components/qtmaterialmenu.cpp @@ -1,11 +1,17 @@ #include "qtmaterialmenu.h" #include "qtmaterialmenu_p.h" -QtMaterialMenu::QtMaterialMenu(QWidget *parent) +namespace md +{ + +Menu::Menu(QWidget *parent) : QWidget(parent) { } -QtMaterialMenu::~QtMaterialMenu() +Menu::~Menu() { } + +} + diff --git a/components/qtmaterialmenu.h b/components/qtmaterialmenu.h index beb01b5..c466c89 100644 --- a/components/qtmaterialmenu.h +++ b/components/qtmaterialmenu.h @@ -3,13 +3,16 @@ #include -class QtMaterialMenu : public QWidget +namespace md +{ +class Menu : public QWidget { Q_OBJECT public: - explicit QtMaterialMenu(QWidget *parent = 0); - ~QtMaterialMenu(); + explicit Menu(QWidget *parent = 0); + ~Menu(); }; +} #endif // QTMATERIALMENU_H diff --git a/components/qtmaterialmenu_internal.cpp b/components/qtmaterialmenu_internal.cpp index e69de29..686a802 100644 --- a/components/qtmaterialmenu_internal.cpp +++ b/components/qtmaterialmenu_internal.cpp @@ -0,0 +1,6 @@ + + +namespace md +{ + +} diff --git a/components/qtmaterialmenu_internal.h b/components/qtmaterialmenu_internal.h index fb79235..f9a77f1 100644 --- a/components/qtmaterialmenu_internal.h +++ b/components/qtmaterialmenu_internal.h @@ -1,4 +1,7 @@ #ifndef QTMATERIALMENU_INTERNAL_H #define QTMATERIALMENU_INTERNAL_H +namespace md +{ +} #endif // QTMATERIALMENU_INTERNAL_H diff --git a/components/qtmaterialmenu_p.h b/components/qtmaterialmenu_p.h index 1328bdc..7787c6e 100644 --- a/components/qtmaterialmenu_p.h +++ b/components/qtmaterialmenu_p.h @@ -1,4 +1,7 @@ #ifndef QTMATERIALMENU_P_H #define QTMATERIALMENU_P_H +namespace md +{ +} #endif // QTMATERIALMENU_P_H