summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/rewriter/textwriter_p.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-05-26 10:04:47 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-05-26 10:11:31 (GMT)
commit678ae4a4226a4dc6f93ea394d8bdd7422dbb503c (patch)
treed744ca69851a3282f608a3e51bd7e605377c8d94 /src/declarative/qml/rewriter/textwriter_p.h
parenta1730a096a2ca44ef2fc1530a141ecbb9b3157ec (diff)
downloadQt-678ae4a4226a4dc6f93ea394d8bdd7422dbb503c.zip
Qt-678ae4a4226a4dc6f93ea394d8bdd7422dbb503c.tar.gz
Qt-678ae4a4226a4dc6f93ea394d8bdd7422dbb503c.tar.bz2
Don't check the QT_MODULE in the text rewriter, there's no need since it's private code.
Diffstat (limited to 'src/declarative/qml/rewriter/textwriter_p.h')
-rw-r--r--src/declarative/qml/rewriter/textwriter_p.h50
1 files changed, 24 insertions, 26 deletions
diff --git a/src/declarative/qml/rewriter/textwriter_p.h b/src/declarative/qml/rewriter/textwriter_p.h
index 07e8f15..57800bf 100644
--- a/src/declarative/qml/rewriter/textwriter_p.h
+++ b/src/declarative/qml/rewriter/textwriter_p.h
@@ -49,47 +49,45 @@
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
-QT_MODULE(Declarative)
-
namespace JavaScript {
class TextWriter
{
- QString *string;
- QTextCursor *cursor;
+ QString *string;
+ QTextCursor *cursor;
- struct Replace {
- int pos;
- int length;
- QString replacement;
- };
+ struct Replace {
+ int pos;
+ int length;
+ QString replacement;
+ };
- QList<Replace> replaceList;
+ QList<Replace> replaceList;
- struct Move {
- int pos;
- int length;
- int to;
- };
+ struct Move {
+ int pos;
+ int length;
+ int to;
+ };
- QList<Move> moveList;
+ QList<Move> moveList;
- bool hasOverlap(int pos, int length);
- bool hasMoveInto(int pos, int length);
+ bool hasOverlap(int pos, int length);
+ bool hasMoveInto(int pos, int length);
- void doReplace(const Replace &replace);
- void doMove(const Move &move);
+ void doReplace(const Replace &replace);
+ void doMove(const Move &move);
- void write_helper();
+ void write_helper();
public:
- TextWriter();
+ TextWriter();
- void replace(int pos, int length, const QString &replacement);
- void move(int pos, int length, int to);
+ void replace(int pos, int length, const QString &replacement);
+ void move(int pos, int length, int to);
- void write(QString *s);
- void write(QTextCursor *textCursor);
+ void write(QString *s);
+ void write(QTextCursor *textCursor);
};