Gui: move QuiLoader for MinGW to global namespace

This commit is contained in:
wmayer
2022-07-14 14:44:56 +02:00
parent cd93e17333
commit b1147c047a
2 changed files with 15 additions and 17 deletions

View File

@@ -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
// ----------------------------------------------------

View File

@@ -46,21 +46,6 @@ class QWidget;
QT_END_NAMESPACE
namespace Gui {
class PySideUicModule : public Py::ExtensionModule<PySideUicModule>
{
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<PySideUicModule>
{
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