diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/regexp.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-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/regexp.cpp')
-rw-r--r-- | kregexpeditor/regexp.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kregexpeditor/regexp.cpp b/kregexpeditor/regexp.cpp index 31450f1..0b583d7 100644 --- a/kregexpeditor/regexp.cpp +++ b/kregexpeditor/regexp.cpp @@ -28,7 +28,7 @@ RegExp::RegExp( bool selected ) : _parent(0), _destructing( false ), _selected( RegExp::~RegExp() { _destructing = true; - for ( QPtrListIterator<RegExp> it(_children); *it; ++it ) { + for ( TQPtrListIterator<RegExp> it(_children); *it; ++it ) { delete *it; } if ( _parent ) @@ -54,9 +54,9 @@ void RegExp::setParent( RegExp* parent ) _parent = parent; } -RegExp* RegExp::readRegExp( QDomElement top, const QString& version ) +RegExp* RegExp::readRegExp( TQDomElement top, const TQString& version ) { - for ( QDomNode node = top.firstChild(); !node.isNull(); node = node.nextSibling() ) { + for ( TQDomNode node = top.firstChild(); !node.isNull(); node = node.nextSibling() ) { if (!node.isElement() ) continue; // skip past comments RegExp* regexp = WidgetFactory::createRegExp(node.toElement(), version ); @@ -65,17 +65,17 @@ RegExp* RegExp::readRegExp( QDomElement top, const QString& version ) return 0; } -QString RegExp::toXmlString() const +TQString RegExp::toXmlString() const { - QDomDocument doc; - doc.setContent( QString::fromLatin1( "<RegularExpression/>" ) ); - QDomNode top = doc.documentElement(); - top.toElement().setAttribute(QString::fromLocal8Bit("version"), KRegExpEditorGUI::version); + TQDomDocument doc; + doc.setContent( TQString::fromLatin1( "<RegularExpression/>" ) ); + TQDomNode top = doc.documentElement(); + top.toElement().setAttribute(TQString::fromLocal8Bit("version"), KRegExpEditorGUI::version); - QDomNode elm = toXml( &doc ); + TQDomNode elm = toXml( &doc ); top.appendChild( elm ); - QString xmlString = QString::fromLocal8Bit("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<!DOCTYPE RegularExpression PUBLIC \"-//KDE//KRegexpEditor DTD 1.0//EN\" \"http://www.blackie.dk/kreg.dtd\">\n") + doc.toString(); + TQString xmlString = TQString::fromLocal8Bit("<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<!DOCTYPE RegularExpression PUBLIC \"-//KDE//KRegexpEditor DTD 1.0//EN\" \"http://www.blackie.dk/kreg.dtd\">\n") + doc.toString(); return xmlString; } |