@@ -144,7 +144,7 @@ template<class T1, class T2> int PythonQtUpcastingOffset() {
144
144
typedef QObject* PythonQtQObjectCreatorFunctionCB ();
145
145
146
146
// ! helper template to create a derived QObject class
147
- template <class T > QObject* PythonQtCreateObject () { return new T (); };
147
+ template <class T > QObject* PythonQtCreateObject () { return new T (); }
148
148
149
149
// ! Helper define to convert from QString to Python C-API
150
150
#ifdef PY3K
@@ -260,7 +260,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
260
260
261
261
// ! Overwrite default handling of stdin using a custom callback. It internally backup
262
262
// ! the original 'sys.stdin' into 'sys.pythonqt_original_stdin'
263
- void setRedirectStdInCallback (PythonQtInputChangedCB* callback, void * callbackData = 0 );
263
+ void setRedirectStdInCallback (PythonQtInputChangedCB* callback, void * callbackData = nullptr );
264
264
265
265
// ! Enable or disable stdin custom callback. It resets 'sys.stdin' using either 'sys.pythonqt_stdin'
266
266
// ! or 'sys.pythonqt_original_stdin'
@@ -319,7 +319,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
319
319
// ! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
320
320
/* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject,
321
321
you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */
322
- void registerClass (const QMetaObject* metaobject, const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL );
322
+ void registerClass (const QMetaObject* metaobject, const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr );
323
323
324
324
// ! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants
325
325
// ! (ownership of wrapper is passed to PythonQt)
@@ -329,7 +329,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
329
329
All slots that take a pointer to typeName as the first argument will be callable from Python on
330
330
a variant object that contains such a type.
331
331
*/
332
- void registerCPPClass (const char * typeName, const char * parentTypeName = NULL , const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL );
332
+ void registerCPPClass (const char * typeName, const char * parentTypeName = nullptr , const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr );
333
333
334
334
// ! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes
335
335
// ! and it will register the classes when it first sees a pointer to such a derived class
@@ -365,7 +365,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
365
365
366
366
// ! evaluates the given script code and returns the result value
367
367
QVariant evalScript (PyObject* object, const QString& script, int start = Py_file_input);
368
-
368
+
369
369
// ! evaluates the given script code in context of given globals and locals and returns the result value
370
370
QVariant evalScript (const QString& script, PyObject* globals, PyObject* locals, int start);
371
371
@@ -536,7 +536,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
536
536
// ! the default importer allows to import files from anywhere QFile can read from,
537
537
// ! including the Qt resource system using ":". Keep in mind that you need to extend
538
538
// ! "sys.path" with ":" to be able to import from the Qt resources.
539
- void installDefaultImporter () { setImporter (NULL ); }
539
+ void installDefaultImporter () { setImporter (nullptr ); }
540
540
541
541
// ! set paths that the importer should ignore
542
542
void setImporterIgnorePaths (const QStringList& paths);
@@ -719,7 +719,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
719
719
// ! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
720
720
/* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject,
721
721
you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */
722
- void registerClass (const QMetaObject* metaobject, const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL , PyObject* module = NULL , int typeSlots = 0 );
722
+ void registerClass (const QMetaObject* metaobject, const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr , PyObject* module = nullptr , int typeSlots = 0 );
723
723
724
724
// ! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants
725
725
// ! (ownership of wrapper is passed to PythonQt)
@@ -729,7 +729,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
729
729
All slots that take a pointer to typeName as the first argument will be callable from Python on
730
730
a variant object that contains such a type.
731
731
*/
732
- void registerCPPClass (const char * typeName, const char * parentTypeName = NULL , const char * package = NULL , PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL , PythonQtShellSetInstanceWrapperCB* shell = NULL , PyObject* module = NULL , int typeSlots = 0 );
732
+ void registerCPPClass (const char * typeName, const char * parentTypeName = nullptr , const char * package = nullptr , PythonQtQObjectCreatorFunctionCB* wrapperCreator = nullptr , PythonQtShellSetInstanceWrapperCB* shell = nullptr , PyObject* module = nullptr , int typeSlots = 0 );
733
733
734
734
// ! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes
735
735
// ! and it will register the classes when it first sees a pointer to such a derived class
@@ -748,7 +748,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
748
748
static PyObject* createNewPythonQtEnumWrapper (const char * enumName, PyObject* parentObject);
749
749
750
750
// ! helper method that creates a PythonQtInstanceWrapper object and registers it in the object map
751
- PythonQtInstanceWrapper* createNewPythonQtInstanceWrapper (QObject* obj, PythonQtClassInfo* info, void * wrappedPtr = NULL );
751
+ PythonQtInstanceWrapper* createNewPythonQtInstanceWrapper (QObject* obj, PythonQtClassInfo* info, void * wrappedPtr = nullptr );
752
752
753
753
// ! get the class info for a meta object (if available)
754
754
PythonQtClassInfo* getClassInfo (const QMetaObject* meta);
@@ -787,13 +787,13 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
787
787
// ! get the dynamic meta object for the given wrapper. It will contain the signals/slots that have been added in Python
788
788
const QMetaObject* getDynamicMetaObject (PythonQtInstanceWrapper* wrapper, const QMetaObject* prototypeMetaObject);
789
789
790
- // ! recursively creates the dynamic meta object chain down to the Qt class wrapper.
790
+ // ! recursively creates the dynamic meta object chain down to the Qt class wrapper.
791
791
const QMetaObject* setupDynamicMetaObjectChain (PythonQtClassWrapper* type, const QMetaObject* prototypeMetaObject);
792
792
793
793
// ! builds and returns the dynamic meta object for the given type, derived from prototypeMetaObject.
794
794
const QMetaObject* buildDynamicMetaObject (PythonQtClassWrapper* type, const QMetaObject* prototypeMetaObject);
795
795
796
- // ! redirected from shell classes, tries to call the given meta call on the Python wrapper.
796
+ // ! redirected from shell classes, tries to call the given meta call on the Python wrapper.
797
797
int handleMetaCall (QObject* object, PythonQtInstanceWrapper* wrapper, QMetaObject::Call call, int id, void ** args);
798
798
799
799
// ! calls the given method on Python function with same name.
@@ -804,7 +804,7 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
804
804
void setupSharedLibrarySuffixes ();
805
805
806
806
// ! create a new pythonqt class wrapper and place it in the pythonqt module
807
- void createPythonQtClassWrapper (PythonQtClassInfo* info, const char * package, PyObject* module = NULL );
807
+ void createPythonQtClassWrapper (PythonQtClassInfo* info, const char * package, PyObject* module = nullptr );
808
808
809
809
// ! get/create new package module (the returned object is a borrowed reference)
810
810
PyObject* packageByName (const char * name);
0 commit comments