##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QTextList.cpp
61 lines | 1.5 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QTextList.h"
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qobject.h>
#include <qtextdocument.h>
#include <qtextformat.h>
#include <qtextlist.h>
#include <qtextobject.h>
QTextList* PythonQtWrapper_QTextList::new_QTextList(QTextDocument* doc)
{
return new QTextList(doc); }
void PythonQtWrapper_QTextList::add(QTextList* theWrappedObject, const QTextBlock& block)
{
theWrappedObject->add(block);
}
int PythonQtWrapper_QTextList::count(QTextList* theWrappedObject) const
{
return theWrappedObject->count();
}
QTextListFormat PythonQtWrapper_QTextList::format(QTextList* theWrappedObject) const
{
return theWrappedObject->format();
}
QTextBlock PythonQtWrapper_QTextList::item(QTextList* theWrappedObject, int i) const
{
return theWrappedObject->item(i);
}
int PythonQtWrapper_QTextList::itemNumber(QTextList* theWrappedObject, const QTextBlock& arg__1) const
{
return theWrappedObject->itemNumber(arg__1);
}
QString PythonQtWrapper_QTextList::itemText(QTextList* theWrappedObject, const QTextBlock& arg__1) const
{
return theWrappedObject->itemText(arg__1);
}
void PythonQtWrapper_QTextList::remove(QTextList* theWrappedObject, const QTextBlock& arg__1)
{
theWrappedObject->remove(arg__1);
}
void PythonQtWrapper_QTextList::removeItem(QTextList* theWrappedObject, int i)
{
theWrappedObject->removeItem(i);
}
void PythonQtWrapper_QTextList::setFormat(QTextList* theWrappedObject, const QTextListFormat& format)
{
theWrappedObject->setFormat(format);
}