@@ -75,7 +75,7 @@ typedef void* PythonQtPolymorphicHandlerCB(const void *ptr, const char **class_n
75
75
76
76
typedef void PythonQtShellSetInstanceWrapperCB (void * object, PythonQtInstanceWrapper* wrapper);
77
77
78
- template <class T > void PythonQtSetInstanceWrapperOnShell (void * object, PythonQtInstanceWrapper* wrapper) {
78
+ template <class T > void PythonQtSetInstanceWrapperOnShell (void * object, PythonQtInstanceWrapper* wrapper) {
79
79
(reinterpret_cast <T*>(object))->_wrapper = wrapper;
80
80
}
81
81
@@ -133,7 +133,7 @@ class PythonQtNewOwnerOfThis
133
133
134
134
// ! returns the offset that needs to be added to upcast an object of type T1 to T2
135
135
template <class T1 , class T2 > int PythonQtUpcastingOffset () {
136
- return ((reinterpret_cast <char *>(static_cast <T2*>(reinterpret_cast <T1*>(0x100 ))))
136
+ return ((reinterpret_cast <char *>(static_cast <T2*>(reinterpret_cast <T1*>(0x100 ))))
137
137
- (reinterpret_cast <char *>(reinterpret_cast <T1*>(0x100 ))));
138
138
}
139
139
@@ -396,9 +396,9 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
396
396
// ! returns the found callable object or NULL
397
397
// ! @return new reference
398
398
PythonQtObjectPtr lookupCallable (PyObject* object, const QString& name);
399
-
399
+
400
400
// ! returns the return type of the method of a wrapped c++ object referenced by \c objectname
401
- QString getReturnTypeOfWrappedMethod (PyObject* module , const QString& objectname);
401
+ QString getReturnTypeOfWrappedMethod (PyObject* module , const QString& objectname);
402
402
// ! returns the return type of the method \c methodName of a wrapped c++ type referenced by \c typeName
403
403
QString getReturnTypeOfWrappedMethod (const QString& typeName, const QString& methodName);
404
404
// @}
@@ -533,7 +533,7 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
533
533
// ! The error is currently just output to the python stderr, future version might implement better trace printing
534
534
bool handleError ();
535
535
536
- // ! return \a true if \a handleError() has been called and an error occured .
536
+ // ! return \a true if \a handleError() has been called and an error occurred .
537
537
bool hadError ()const ;
538
538
539
539
// ! reset error flag. After calling this, hadError() will return false.
@@ -584,9 +584,9 @@ class PYTHONQT_EXPORT PythonQt : public QObject {
584
584
585
585
private:
586
586
void initPythonQtModule (bool redirectStdOut, const QByteArray& pythonQtModuleName);
587
-
587
+
588
588
QString getReturnTypeOfWrappedMethodHelper (const PythonQtObjectPtr& variableObject, const QString& methodName, const QString& context);
589
-
589
+
590
590
PyObject* getObjectByType (const QString& typeName);
591
591
592
592
// ! callback for stdout redirection, emits pythonStdOut signal
@@ -729,10 +729,10 @@ class PYTHONQT_EXPORT PythonQtPrivate : public QObject {
729
729
730
730
// ! returns the profiling callback, which may be NULL
731
731
PythonQt::ProfilingCB* profilingCB () const { return _profilingCB; }
732
-
732
+
733
733
// ! determines the signature of the given callable object (similar as pydoc)
734
734
QString getSignature (PyObject* object);
735
-
735
+
736
736
// ! returns true if the object is a method descriptor (same as inspect.ismethoddescriptor() in inspect.py)
737
737
bool isMethodDescriptor (PyObject* object) const ;
738
738
0 commit comments