@@ -138,6 +138,7 @@ virtual void timerEvent(QTimerEvent* arg__1);
138138
139139class PythonQtPublicPromoter_QFinalState : public QFinalState
140140{ public:
141+ friend class PythonQtWrapper_QFinalState ;
141142inline bool promoted_event (QEvent* e) { return QFinalState::event (e); }
142143inline void promoted_onEntry (QEvent* event) { QFinalState::onEntry (event); }
143144inline void promoted_onExit (QEvent* event) { QFinalState::onExit (event); }
@@ -179,6 +180,7 @@ virtual void timerEvent(QTimerEvent* arg__1);
179180
180181class PythonQtPublicPromoter_QHistoryState : public QHistoryState
181182{ public:
183+ friend class PythonQtWrapper_QHistoryState ;
182184inline bool promoted_event (QEvent* e) { return QHistoryState::event (e); }
183185inline void promoted_onEntry (QEvent* event) { QHistoryState::onEntry (event); }
184186inline void promoted_onExit (QEvent* event) { QHistoryState::onExit (event); }
@@ -239,6 +241,7 @@ virtual qint64 writeData(const char* data, qint64 len);
239241
240242class PythonQtPublicPromoter_QIODevice : public QIODevice
241243{ public:
244+ friend class PythonQtWrapper_QIODevice ;
242245inline bool promoted_atEnd () const { return QIODevice::atEnd (); }
243246inline qint64 promoted_bytesAvailable () const { return QIODevice::bytesAvailable (); }
244247inline qint64 promoted_bytesToWrite () const { return QIODevice::bytesToWrite (); }
@@ -250,6 +253,8 @@ inline qint64 promoted_pos() const { return QIODevice::pos(); }
250253inline qint64 promoted_readLineData (char * data, qint64 maxlen) { return QIODevice::readLineData (data, maxlen); }
251254inline bool promoted_reset () { return QIODevice::reset (); }
252255inline bool promoted_seek (qint64 pos) { return QIODevice::seek (pos); }
256+ inline void promoted_setErrorString (const QString& errorString) { QIODevice::setErrorString (errorString); }
257+ inline void promoted_setOpenMode (QIODevice::OpenMode openMode) { QIODevice::setOpenMode (openMode); }
253258inline qint64 promoted_size () const { return QIODevice::size (); }
254259inline bool promoted_waitForBytesWritten (int msecs) { return QIODevice::waitForBytesWritten (msecs); }
255260inline bool promoted_waitForReadyRead (int msecs) { return QIODevice::waitForReadyRead (msecs); }
@@ -290,6 +295,8 @@ void delete_QIODevice(QIODevice* obj) { delete obj; }
290295 qint64 readLineData (QIODevice* theWrappedObject, char * data, qint64 maxlen);
291296 bool reset (QIODevice* theWrappedObject);
292297 bool seek (QIODevice* theWrappedObject, qint64 pos);
298+ void setErrorString (QIODevice* theWrappedObject, const QString& errorString);
299+ void setOpenMode (QIODevice* theWrappedObject, QIODevice::OpenMode openMode);
293300 void setTextModeEnabled (QIODevice* theWrappedObject, bool enabled);
294301 qint64 size (QIODevice* theWrappedObject) const ;
295302 void ungetChar (QIODevice* theWrappedObject, char c);
@@ -316,13 +323,13 @@ virtual bool canFetchMore(const QModelIndex& parent) const;
316323virtual void childEvent (QChildEvent* arg__1);
317324virtual int columnCount (const QModelIndex& parent = QModelIndex()) const ;
318325virtual void customEvent (QEvent* arg__1);
319- virtual QVariant data (const QModelIndex& proxyIndex, int role) const ;
326+ virtual QVariant data (const QModelIndex& proxyIndex, int role = Qt::DisplayRole ) const ;
320327virtual bool dropMimeData (const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent);
321328virtual bool event (QEvent* arg__1);
322329virtual bool eventFilter (QObject* arg__1, QEvent* arg__2);
323330virtual void fetchMore (const QModelIndex& parent);
324331virtual Qt::ItemFlags flags (const QModelIndex& index) const ;
325- virtual bool hasChildren (const QModelIndex& parent) const ;
332+ virtual bool hasChildren (const QModelIndex& parent = QModelIndex() ) const ;
326333virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const ;
327334virtual QModelIndex index (int row, int column, const QModelIndex& parent = QModelIndex()) const ;
328335virtual bool insertColumns (int column, int count, const QModelIndex& parent = QModelIndex());
@@ -343,12 +350,12 @@ virtual bool removeRows(int row, int count, const QModelIndex& parent = QMod
343350virtual void revert ();
344351virtual QHash<int , QByteArray > roleNames () const ;
345352virtual int rowCount (const QModelIndex& parent = QModelIndex()) const ;
346- virtual bool setData (const QModelIndex& index, const QVariant& value, int role);
347- virtual bool setHeaderData (int section, Qt::Orientation orientation, const QVariant& value, int role);
353+ virtual bool setData (const QModelIndex& index, const QVariant& value, int role = Qt::EditRole );
354+ virtual bool setHeaderData (int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole );
348355virtual bool setItemData (const QModelIndex& index, const QMap<int , QVariant >& roles);
349356virtual void setSourceModel (QAbstractItemModel* sourceModel);
350357virtual QModelIndex sibling (int row, int column, const QModelIndex& idx) const ;
351- virtual void sort (int column, Qt::SortOrder order);
358+ virtual void sort (int column, Qt::SortOrder order = Qt::AscendingOrder );
352359virtual QSize span (const QModelIndex& index) const ;
353360virtual bool submit ();
354361virtual Qt::DropActions supportedDragActions () const ;
@@ -360,6 +367,7 @@ virtual void timerEvent(QTimerEvent* arg__1);
360367
361368class PythonQtPublicPromoter_QIdentityProxyModel : public QIdentityProxyModel
362369{ public:
370+ friend class PythonQtWrapper_QIdentityProxyModel ;
363371inline int promoted_columnCount (const QModelIndex& parent = QModelIndex()) const { return QIdentityProxyModel::columnCount (parent); }
364372inline bool promoted_dropMimeData (const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QIdentityProxyModel::dropMimeData (data, action, row, column, parent); }
365373inline QVariant promoted_headerData (int section, Qt::Orientation orientation, int role) const { return QIdentityProxyModel::headerData (section, orientation, role); }
@@ -1006,6 +1014,7 @@ virtual void timerEvent(QTimerEvent* arg__1);
10061014
10071015class PythonQtPublicPromoter_QMimeData : public QMimeData
10081016{ public:
1017+ friend class PythonQtWrapper_QMimeData ;
10091018inline QStringList promoted_formats () const { return QMimeData::formats (); }
10101019inline bool promoted_hasFormat (const QString& mimetype) const { return QMimeData::hasFormat (mimetype); }
10111020inline QVariant promoted_retrieveData (const QString& mimetype, QVariant::Type preferredType) const { return QMimeData::retrieveData (mimetype, preferredType); }
@@ -1143,7 +1152,7 @@ public slots:
11431152QMutex* new_QMutex (QMutex::RecursionMode mode = QMutex::NonRecursive);
11441153void delete_QMutex (QMutex* obj) { delete obj; }
11451154 void lock (QMutex* theWrappedObject);
1146- bool tryLock (QMutex* theWrappedObject, int timeout = 0 );
1155+ bool tryLock (QMutex* theWrappedObject, int timeout);
11471156 void unlock (QMutex* theWrappedObject);
11481157};
11491158
@@ -1169,10 +1178,14 @@ virtual void timerEvent(QTimerEvent* arg__1);
11691178
11701179class PythonQtPublicPromoter_QObject : public QObject
11711180{ public:
1181+ friend class PythonQtWrapper_QObject ;
11721182inline void promoted_childEvent (QChildEvent* arg__1) { QObject::childEvent (arg__1); }
11731183inline void promoted_customEvent (QEvent* arg__1) { QObject::customEvent (arg__1); }
11741184inline bool promoted_event (QEvent* arg__1) { return QObject::event (arg__1); }
11751185inline bool promoted_eventFilter (QObject* arg__1, QEvent* arg__2) { return QObject::eventFilter (arg__1, arg__2); }
1186+ inline bool promoted_isSignalConnected (const QMetaMethod& signal) const { return QObject::isSignalConnected (signal); }
1187+ inline QObject* promoted_sender () const { return QObject::sender (); }
1188+ inline int promoted_senderSignalIndex () const { return QObject::senderSignalIndex (); }
11761189inline void promoted_timerEvent (QTimerEvent* arg__1) { QObject::timerEvent (arg__1); }
11771190};
11781191
@@ -1192,15 +1205,18 @@ void delete_QObject(QObject* obj) { delete obj; }
11921205 bool event (QObject* theWrappedObject, QEvent* arg__1);
11931206 bool eventFilter (QObject* theWrappedObject, QObject* arg__1, QEvent* arg__2);
11941207 void installEventFilter (QObject* theWrappedObject, QObject* arg__1);
1208+ bool isSignalConnected (QObject* theWrappedObject, const QMetaMethod& signal) const ;
11951209 bool isWidgetType (QObject* theWrappedObject) const ;
11961210 bool isWindowType (QObject* theWrappedObject) const ;
11971211 void killTimer (QObject* theWrappedObject, int id);
11981212 void moveToThread (QObject* theWrappedObject, QThread* thread);
11991213 QString objectName (QObject* theWrappedObject) const ;
12001214 void removeEventFilter (QObject* theWrappedObject, QObject* arg__1);
1215+ QObject* sender (QObject* theWrappedObject) const ;
1216+ int senderSignalIndex (QObject* theWrappedObject) const ;
12011217 void setObjectName (QObject* theWrappedObject, const QString& name);
12021218 bool signalsBlocked (QObject* theWrappedObject) const ;
1203- int startTimer (QObject* theWrappedObject, int interval, Qt::TimerType timerType = Qt::CoarseTimer );
1219+ int startTimer (QObject* theWrappedObject, int interval, Qt::TimerType timerType);
12041220 QThread* thread (QObject* theWrappedObject) const ;
12051221 void timerEvent (QObject* theWrappedObject, QTimerEvent* arg__1);
12061222};
@@ -1231,6 +1247,7 @@ virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation
12311247
12321248class PythonQtPublicPromoter_QParallelAnimationGroup : public QParallelAnimationGroup
12331249{ public:
1250+ friend class PythonQtWrapper_QParallelAnimationGroup ;
12341251inline int promoted_duration () const { return QParallelAnimationGroup::duration (); }
12351252inline bool promoted_event (QEvent* event) { return QParallelAnimationGroup::event (event); }
12361253inline void promoted_updateCurrentTime (int currentTime) { QParallelAnimationGroup::updateCurrentTime (currentTime); }
0 commit comments