diff --git a/src/Gui/UiLoader.cpp b/src/Gui/UiLoader.cpp index 1048d4e9f4..6b8bd7b1a3 100644 --- a/src/Gui/UiLoader.cpp +++ b/src/Gui/UiLoader.cpp @@ -203,7 +203,6 @@ Py::Object PySideUicModule::createCustomWidget(const Py::Tuple& args) // ---------------------------------------------------- #if !defined (HAVE_QT_UI_TOOLS) -namespace Gui { QUiLoader::QUiLoader(QObject* parent) { Base::PyGILStateLocker lock; @@ -482,7 +481,6 @@ QString QUiLoader::errorString() const return QString(); } } -} #endif // ---------------------------------------------------- diff --git a/src/Gui/UiLoader.h b/src/Gui/UiLoader.h index 37dfadda32..3d33db681d 100644 --- a/src/Gui/UiLoader.h +++ b/src/Gui/UiLoader.h @@ -46,21 +46,6 @@ class QWidget; QT_END_NAMESPACE -namespace Gui { - -class PySideUicModule : public Py::ExtensionModule -{ - -public: - PySideUicModule(); - virtual ~PySideUicModule() {} - -private: - Py::Object loadUiType(const Py::Tuple& args); - Py::Object loadUi(const Py::Tuple& args); - Py::Object createCustomWidget(const Py::Tuple&); -}; - #if !defined (HAVE_QT_UI_TOOLS) class QUiLoader : public QObject { @@ -98,6 +83,21 @@ private: }; #endif +namespace Gui { + +class PySideUicModule : public Py::ExtensionModule +{ + +public: + PySideUicModule(); + virtual ~PySideUicModule() {} + +private: + Py::Object loadUiType(const Py::Tuple& args); + Py::Object loadUi(const Py::Tuple& args); + Py::Object createCustomWidget(const Py::Tuple&); +}; + /** * The UiLoader class provides the abitlity to use the widget factory * framework of FreeCAD within the framework provided by Qt. This class