##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QTextListFormat.h
46 lines | 1.7 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTLISTFORMAT_H
#define PYTHONQTWRAPPER_QTEXTLISTFORMAT_H
#include <qtextformat.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qpen.h>
#include <qtextformat.h>
#include <qvector.h>
class PythonQtShell_QTextListFormat : public QTextListFormat
{
public:
PythonQtShell_QTextListFormat():QTextListFormat(),_wrapper(NULL) {};
PythonQtShell_QTextListFormat(const QTextFormat& fmt):QTextListFormat(fmt),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QTextListFormat : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Style )
enum Style{
ListDisc = QTextListFormat::ListDisc, ListCircle = QTextListFormat::ListCircle, ListSquare = QTextListFormat::ListSquare, ListDecimal = QTextListFormat::ListDecimal, ListLowerAlpha = QTextListFormat::ListLowerAlpha, ListUpperAlpha = QTextListFormat::ListUpperAlpha, ListStyleUndefined = QTextListFormat::ListStyleUndefined};
public slots:
QTextListFormat* new_QTextListFormat();
QTextListFormat* new_QTextListFormat(const QTextListFormat& other) {
PythonQtShell_QTextListFormat* a = new PythonQtShell_QTextListFormat();
*((QTextListFormat*)a) = other;
return a; }
void delete_QTextListFormat(QTextListFormat* obj) { delete obj; }
void setStyle(QTextListFormat* theWrappedObject, QTextListFormat::Style style);
void setIndent(QTextListFormat* theWrappedObject, int indent);
bool isValid(QTextListFormat* theWrappedObject) const;
QTextListFormat::Style style(QTextListFormat* theWrappedObject) const;
int indent(QTextListFormat* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTEXTLISTFORMAT_H