summaryrefslogtreecommitdiffstats
path: root/quanta/components/csseditor/qmyhighlighter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/components/csseditor/qmyhighlighter.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/csseditor/qmyhighlighter.cpp')
-rw-r--r--quanta/components/csseditor/qmyhighlighter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/quanta/components/csseditor/qmyhighlighter.cpp b/quanta/components/csseditor/qmyhighlighter.cpp
index 431bf6a5..dad1fe24 100644
--- a/quanta/components/csseditor/qmyhighlighter.cpp
+++ b/quanta/components/csseditor/qmyhighlighter.cpp
@@ -16,22 +16,22 @@
***************************************************************************/
#include "qmyhighlighter.h"
-#include <qregexp.h>
-QMyHighlighter::QMyHighlighter(QTextEdit* Qtxt):QSyntaxHighlighter(Qtxt){
+#include <tqregexp.h>
+QMyHighlighter::QMyHighlighter(TQTextEdit* Qtxt):TQSyntaxHighlighter(Qtxt){
}
/*****************************************************************************/
QMyHighlighter::~QMyHighlighter(){
}
/*****************************************************************************/
-int QMyHighlighter::highlightParagraph( const QString & text, int /*endStateOfLastPara*/ )
+int QMyHighlighter::highlightParagraph( const TQString & text, int /*endStateOfLastPara*/ )
{
- //QRegExp pattern("\\s*\\{([\\w\\s\\d:;-\"]*)\\}\\s*");
- QRegExp pattern("([#:\\.\\w]*)\\s*\\{");
+ //TQRegExp pattern("\\s*\\{([\\w\\s\\d:;-\"]*)\\}\\s*");
+ TQRegExp pattern("([#:\\.\\w]*)\\s*\\{");
int pos=pattern.search(text,0);
int l=int(pattern.cap(1).length());
- setFormat(pos,l,QColor("red"));
+ setFormat(pos,l,TQColor("red"));
if( pos== -1)
pos = 0;
@@ -45,7 +45,7 @@ int QMyHighlighter::highlightParagraph( const QString & text, int /*endStateOfLa
if ( pos > -1 ) {
l = pattern.matchedLength();
- setFormat(pos,l,QColor("mediumvioletred"));
+ setFormat(pos,l,TQColor("mediumvioletred"));
pos += pattern.matchedLength();
}
}
@@ -56,7 +56,7 @@ int QMyHighlighter::highlightParagraph( const QString & text, int /*endStateOfLa
pos = pattern.search( text, pos );
if ( pos > -1 ) {
l = pattern.cap(1).length();
- setFormat(pos + 2 ,l,QColor("steelblue"));
+ setFormat(pos + 2 ,l,TQColor("steelblue"));
pos += pattern.matchedLength();
}
}