Skip to content

Commit b699027

Browse files
author
florianlink
committed
regenerated wrappers for Qt 5.3 including ownership handling
git-svn-id: http://svn.code.sf.net/p/pythonqt/code/trunk@382 ea8d5007-eb21-0410-b261-ccb3ea6e24a9
1 parent 949abff commit b699027

File tree

66 files changed

+2241
-439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2241
-439
lines changed

generated_cpp_53/com_trolltech_qt_core/com_trolltech_qt_core0.cpp

+78-6
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ QAbstractAnimation::Direction PythonQtWrapper_QAbstractAnimation::direction(QAb
277277
return ( theWrappedObject->direction());
278278
}
279279

280+
int PythonQtWrapper_QAbstractAnimation::duration(QAbstractAnimation* theWrappedObject) const
281+
{
282+
return ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_duration());
283+
}
284+
280285
bool PythonQtWrapper_QAbstractAnimation::event(QAbstractAnimation* theWrappedObject, QEvent* event)
281286
{
282287
return ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_event(event));
@@ -312,6 +317,11 @@ int PythonQtWrapper_QAbstractAnimation::totalDuration(QAbstractAnimation* theWr
312317
return ( theWrappedObject->totalDuration());
313318
}
314319

320+
void PythonQtWrapper_QAbstractAnimation::updateCurrentTime(QAbstractAnimation* theWrappedObject, int currentTime)
321+
{
322+
( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_updateCurrentTime(currentTime));
323+
}
324+
315325
void PythonQtWrapper_QAbstractAnimation::updateDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction)
316326
{
317327
( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_updateDirection(direction));
@@ -1496,6 +1506,11 @@ void PythonQtWrapper_QAbstractItemModel::changePersistentIndexList(QAbstractItem
14961506
( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_changePersistentIndexList(from, to));
14971507
}
14981508

1509+
int PythonQtWrapper_QAbstractItemModel::columnCount(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const
1510+
{
1511+
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_columnCount(parent));
1512+
}
1513+
14991514
QModelIndex PythonQtWrapper_QAbstractItemModel::createIndex(QAbstractItemModel* theWrappedObject, int row, int column, quintptr id) const
15001515
{
15011516
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_createIndex(row, column, id));
@@ -1506,6 +1521,11 @@ QModelIndex PythonQtWrapper_QAbstractItemModel::createIndex(QAbstractItemModel*
15061521
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_createIndex(row, column, data));
15071522
}
15081523

1524+
QVariant PythonQtWrapper_QAbstractItemModel::data(QAbstractItemModel* theWrappedObject, const QModelIndex& index, int role) const
1525+
{
1526+
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_data(index, role));
1527+
}
1528+
15091529
bool PythonQtWrapper_QAbstractItemModel::decodeData(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& parent, QDataStream& stream)
15101530
{
15111531
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_decodeData(row, column, parent, stream));
@@ -1581,6 +1601,11 @@ QVariant PythonQtWrapper_QAbstractItemModel::headerData(QAbstractItemModel* the
15811601
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_headerData(section, orientation, role));
15821602
}
15831603

1604+
QModelIndex PythonQtWrapper_QAbstractItemModel::index(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& parent) const
1605+
{
1606+
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_index(row, column, parent));
1607+
}
1608+
15841609
bool PythonQtWrapper_QAbstractItemModel::insertColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent)
15851610
{
15861611
return ( theWrappedObject->insertColumn(column, parent));
@@ -1611,7 +1636,7 @@ QList<QModelIndex > PythonQtWrapper_QAbstractItemModel::match(QAbstractItemMode
16111636
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_match(start, role, value, hits, flags));
16121637
}
16131638

1614-
QMimeData* PythonQtWrapper_QAbstractItemModel::mimeData(QAbstractItemModel* theWrappedObject, const QList<QModelIndex >& indexes) const
1639+
PythonQtPassOwnershipToPython<QMimeData* > PythonQtWrapper_QAbstractItemModel::mimeData(QAbstractItemModel* theWrappedObject, const QList<QModelIndex >& indexes) const
16151640
{
16161641
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_mimeData(indexes));
16171642
}
@@ -1646,6 +1671,11 @@ QObject* PythonQtWrapper_QAbstractItemModel::parent(QAbstractItemModel* theWrap
16461671
return ( theWrappedObject->parent());
16471672
}
16481673

1674+
QModelIndex PythonQtWrapper_QAbstractItemModel::parent(QAbstractItemModel* theWrappedObject, const QModelIndex& child) const
1675+
{
1676+
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_parent(child));
1677+
}
1678+
16491679
QList<QModelIndex > PythonQtWrapper_QAbstractItemModel::persistentIndexList(QAbstractItemModel* theWrappedObject) const
16501680
{
16511681
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_persistentIndexList());
@@ -1681,6 +1711,11 @@ QHash<int , QByteArray > PythonQtWrapper_QAbstractItemModel::roleNames(QAbstrac
16811711
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_roleNames());
16821712
}
16831713

1714+
int PythonQtWrapper_QAbstractItemModel::rowCount(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const
1715+
{
1716+
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_rowCount(parent));
1717+
}
1718+
16841719
bool PythonQtWrapper_QAbstractItemModel::setData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role)
16851720
{
16861721
return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_setData(index, value, role));
@@ -2931,6 +2966,10 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
29312966
}
29322967
QAbstractState::timerEvent(arg__1);
29332968
}
2969+
QAbstractState* PythonQtWrapper_QAbstractState::new_QAbstractState(QState* parent)
2970+
{
2971+
return new PythonQtShell_QAbstractState(parent); }
2972+
29342973
bool PythonQtWrapper_QAbstractState::event(QAbstractState* theWrappedObject, QEvent* e)
29352974
{
29362975
return ( ((PythonQtPublicPromoter_QAbstractState*)theWrappedObject)->promoted_event(e));
@@ -2941,6 +2980,16 @@ QStateMachine* PythonQtWrapper_QAbstractState::machine(QAbstractState* theWrapp
29412980
return ( theWrappedObject->machine());
29422981
}
29432982

2983+
void PythonQtWrapper_QAbstractState::onEntry(QAbstractState* theWrappedObject, QEvent* event)
2984+
{
2985+
( ((PythonQtPublicPromoter_QAbstractState*)theWrappedObject)->promoted_onEntry(event));
2986+
}
2987+
2988+
void PythonQtWrapper_QAbstractState::onExit(QAbstractState* theWrappedObject, QEvent* event)
2989+
{
2990+
( ((PythonQtPublicPromoter_QAbstractState*)theWrappedObject)->promoted_onExit(event));
2991+
}
2992+
29442993
QState* PythonQtWrapper_QAbstractState::parentState(QAbstractState* theWrappedObject) const
29452994
{
29462995
return ( theWrappedObject->parentState());
@@ -3137,11 +3186,21 @@ bool PythonQtWrapper_QAbstractTransition::event(QAbstractTransition* theWrapped
31373186
return ( ((PythonQtPublicPromoter_QAbstractTransition*)theWrappedObject)->promoted_event(e));
31383187
}
31393188

3189+
bool PythonQtWrapper_QAbstractTransition::eventTest(QAbstractTransition* theWrappedObject, QEvent* event)
3190+
{
3191+
return ( ((PythonQtPublicPromoter_QAbstractTransition*)theWrappedObject)->promoted_eventTest(event));
3192+
}
3193+
31403194
QStateMachine* PythonQtWrapper_QAbstractTransition::machine(QAbstractTransition* theWrappedObject) const
31413195
{
31423196
return ( theWrappedObject->machine());
31433197
}
31443198

3199+
void PythonQtWrapper_QAbstractTransition::onTransition(QAbstractTransition* theWrappedObject, QEvent* event)
3200+
{
3201+
( ((PythonQtPublicPromoter_QAbstractTransition*)theWrappedObject)->promoted_onTransition(event));
3202+
}
3203+
31453204
void PythonQtWrapper_QAbstractTransition::removeAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation)
31463205
{
31473206
( theWrappedObject->removeAnimation(animation));
@@ -3386,7 +3445,7 @@ QAnimationGroup* PythonQtWrapper_QAnimationGroup::new_QAnimationGroup(QObject*
33863445
{
33873446
return new PythonQtShell_QAnimationGroup(parent); }
33883447

3389-
void PythonQtWrapper_QAnimationGroup::addAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation)
3448+
void PythonQtWrapper_QAnimationGroup::addAnimation(QAnimationGroup* theWrappedObject, PythonQtPassOwnershipToCPP<QAbstractAnimation* > animation)
33903449
{
33913450
( theWrappedObject->addAnimation(animation));
33923451
}
@@ -3416,17 +3475,17 @@ int PythonQtWrapper_QAnimationGroup::indexOfAnimation(QAnimationGroup* theWrapp
34163475
return ( theWrappedObject->indexOfAnimation(animation));
34173476
}
34183477

3419-
void PythonQtWrapper_QAnimationGroup::insertAnimation(QAnimationGroup* theWrappedObject, int index, QAbstractAnimation* animation)
3478+
void PythonQtWrapper_QAnimationGroup::insertAnimation(QAnimationGroup* theWrappedObject, int index, PythonQtPassOwnershipToCPP<QAbstractAnimation* > animation)
34203479
{
34213480
( theWrappedObject->insertAnimation(index, animation));
34223481
}
34233482

3424-
void PythonQtWrapper_QAnimationGroup::removeAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation)
3483+
void PythonQtWrapper_QAnimationGroup::removeAnimation(QAnimationGroup* theWrappedObject, PythonQtPassOwnershipToPython<QAbstractAnimation* > animation)
34253484
{
34263485
( theWrappedObject->removeAnimation(animation));
34273486
}
34283487

3429-
QAbstractAnimation* PythonQtWrapper_QAnimationGroup::takeAnimation(QAnimationGroup* theWrappedObject, int index)
3488+
PythonQtPassOwnershipToPython<QAbstractAnimation* > PythonQtWrapper_QAnimationGroup::takeAnimation(QAnimationGroup* theWrappedObject, int index)
34303489
{
34313490
return ( theWrappedObject->takeAnimation(index));
34323491
}
@@ -4648,7 +4707,7 @@ QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationN
46484707
return (QCoreApplication::organizationName());
46494708
}
46504709

4651-
void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event, int priority)
4710+
void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, PythonQtPassOwnershipToCPP<QEvent* > event, int priority)
46524711
{
46534712
(QCoreApplication::postEvent(receiver, event, priority));
46544713
}
@@ -5922,6 +5981,11 @@ QFactoryInterface* PythonQtWrapper_QFactoryInterface::new_QFactoryInterface()
59225981
{
59235982
return new PythonQtShell_QFactoryInterface(); }
59245983

5984+
QStringList PythonQtWrapper_QFactoryInterface::keys(QFactoryInterface* theWrappedObject) const
5985+
{
5986+
return ( ((PythonQtPublicPromoter_QFactoryInterface*)theWrappedObject)->promoted_keys());
5987+
}
5988+
59255989

59265990

59275991
PythonQtShell_QFile::~PythonQtShell_QFile() {
@@ -7487,6 +7551,14 @@ if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) {
74877551
}
74887552
return QFileDevice::writeData(data0, len1);
74897553
}
7554+
QFileDevice* PythonQtWrapper_QFileDevice::new_QFileDevice()
7555+
{
7556+
return new PythonQtShell_QFileDevice(); }
7557+
7558+
QFileDevice* PythonQtWrapper_QFileDevice::new_QFileDevice(QObject* parent)
7559+
{
7560+
return new PythonQtShell_QFileDevice(parent); }
7561+
74907562
bool PythonQtWrapper_QFileDevice::atEnd(QFileDevice* theWrappedObject) const
74917563
{
74927564
return ( ((PythonQtPublicPromoter_QFileDevice*)theWrappedObject)->promoted_atEnd());

0 commit comments

Comments
 (0)