summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/regexpconverter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/regexpconverter.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/regexpconverter.cpp')
-rw-r--r--kregexpeditor/regexpconverter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kregexpeditor/regexpconverter.cpp b/kregexpeditor/regexpconverter.cpp
index 2d53e20..2678591 100644
--- a/kregexpeditor/regexpconverter.cpp
+++ b/kregexpeditor/regexpconverter.cpp
@@ -27,11 +27,11 @@
#include "positionregexp.h"
#include "repeatregexp.h"
#include "textregexp.h"
-#include <qtextedit.h>
+#include <tqtextedit.h>
#include "regexphighlighter.h"
RegExpConverter* RegExpConverter::_current = 0;
-RegExp* RegExpConverter::parse( const QString&, bool* ok )
+RegExp* RegExpConverter::parse( const TQString&, bool* ok )
{
ok = false;
return new DotRegExp( false ); // This method should never be called.
@@ -39,7 +39,7 @@ RegExp* RegExpConverter::parse( const QString&, bool* ok )
// This function needs to be called toStr rather than toString, as it is not possible to
// over load function across inheritance!
-QString RegExpConverter::toStr( RegExp* regexp, bool markSelection )
+TQString RegExpConverter::toStr( RegExp* regexp, bool markSelection )
{
switch (regexp->type()) {
case RegExp::CONC: return toString( static_cast<ConcRegExp*>( regexp ), markSelection);
@@ -53,13 +53,13 @@ QString RegExpConverter::toStr( RegExp* regexp, bool markSelection )
case RegExp::TEXTRANGE: return toString( static_cast<TextRangeRegExp*>( regexp ), markSelection );
}
qWarning("We shouldn't get here!");
- return QString::fromLatin1( "" );
+ return TQString::fromLatin1( "" );
}
-QString RegExpConverter::escape( QString text, QValueList<QChar> chars, QChar escapeChar) const
+TQString RegExpConverter::escape( TQString text, TQValueList<TQChar> chars, TQChar escapeChar) const
{
- QString res;
+ TQString res;
for (unsigned int i=0; i<text.length(); i++) {
for (unsigned int j=0; j<chars.count(); j++) {
if ( text.at(i) == (chars[j]) ) {
@@ -74,9 +74,9 @@ QString RegExpConverter::escape( QString text, QValueList<QChar> chars, QChar es
}
/**
- Returns a QSyntaxHighlighter to be used in the virifyer widget.
+ Returns a TQSyntaxHighlighter to be used in the virifyer widget.
*/
-RegexpHighlighter* RegExpConverter::highlighter( QTextEdit* )
+RegexpHighlighter* RegExpConverter::highlighter( TQTextEdit* )
{
return 0;
}