Skip to content

Commit 97c91c3

Browse files
committed
added methods to qt namespace
1 parent 2e5d856 commit 97c91c3

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

generated_cpp/com_trolltech_qt_core/PythonQtWrapper_Qt.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,26 @@
55
#include <PythonQtConversion.h>
66
#include <QTextDocument>
77
#include <QVariant>
8+
#include <qbytearray.h>
9+
#include <qtextcodec.h>
10+
11+
bool PythonQtWrapper_Qt::static_Qt_mightBeRichText(const QString& arg__1)
12+
{
13+
return Qt::mightBeRichText(arg__1);
14+
}
15+
16+
QString PythonQtWrapper_Qt::static_Qt_convertFromPlainText(const QString& plain, Qt::WhiteSpaceMode mode)
17+
{
18+
return Qt::convertFromPlainText(plain, mode);
19+
}
20+
21+
QTextCodec* PythonQtWrapper_Qt::static_Qt_codecForHtml(const QByteArray& ba)
22+
{
23+
return Qt::codecForHtml(ba);
24+
}
25+
26+
QString PythonQtWrapper_Qt::static_Qt_escape(const QString& plain)
27+
{
28+
return Qt::escape(plain);
29+
}
830

generated_cpp/com_trolltech_qt_core/PythonQtWrapper_Qt.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <QTextDocument>
1010
#include <QVariant>
11+
#include <qbytearray.h>
12+
#include <qtextcodec.h>
1113

1214
class PythonQtWrapper_Qt : public QObject
1315
{ Q_OBJECT
@@ -140,6 +142,10 @@ enum ItemFlag{
140142
enum HitTestAccuracy{
141143
ExactHit = Qt::ExactHit, FuzzyHit = Qt::FuzzyHit};
142144
public slots:
145+
bool static_Qt_mightBeRichText(const QString& arg__1);
146+
QString static_Qt_convertFromPlainText(const QString& plain, Qt::WhiteSpaceMode mode = Qt::WhiteSpacePre);
147+
QTextCodec* static_Qt_codecForHtml(const QByteArray& ba);
148+
QString static_Qt_escape(const QString& plain);
143149
};
144150

145151
#endif // PYTHONQTWRAPPER_QT_H

0 commit comments

Comments
 (0)