Gui: modernize some classes

This commit is contained in:
wmayer
2021-09-23 11:00:50 +02:00
parent 89ab1ddbfb
commit eb18c2f9db
6 changed files with 38 additions and 38 deletions

View File

@@ -48,8 +48,8 @@ public:
bool toCString(const Py::Object&, std::string&);
QObject* toQObject(const Py::Object&);
QGraphicsItem* toQGraphicsItem(PyObject* ptr);
Py::Object fromQObject(QObject*, const char* className=0);
Py::Object fromQWidget(QWidget*, const char* className=0);
Py::Object fromQObject(QObject*, const char* className=nullptr);
Py::Object fromQWidget(QWidget*, const char* className=nullptr);
const char* getWrapperName(QObject*) const;
/*!
Create a Python wrapper for the icon. The icon must be created on the heap