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/textregexp.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/textregexp.cpp')
-rw-r--r-- | kregexpeditor/textregexp.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kregexpeditor/textregexp.cpp b/kregexpeditor/textregexp.cpp index 7d5d02c..e9b493f 100644 --- a/kregexpeditor/textregexp.cpp +++ b/kregexpeditor/textregexp.cpp @@ -24,7 +24,7 @@ #include "textregexp.h" -TextRegExp::TextRegExp( bool selected, QString text) :RegExp( selected ) +TextRegExp::TextRegExp( bool selected, TQString text) :RegExp( selected ) { _text = text; } @@ -35,34 +35,34 @@ bool TextRegExp::check( ErrorMap&, bool, bool ) } -void TextRegExp::append( QString str ) +void TextRegExp::append( TQString str ) { _text.append( str ); } -QDomNode TextRegExp::toXml( QDomDocument* doc ) const +TQDomNode TextRegExp::toXml( TQDomDocument* doc ) const { - QDomElement top = doc->createElement(QString::fromLocal8Bit("Text")); - QDomText text = doc->createTextNode( _text ); + TQDomElement top = doc->createElement(TQString::fromLocal8Bit("Text")); + TQDomText text = doc->createTextNode( _text ); top.appendChild( text ); return top; } -bool TextRegExp::load( QDomElement top, const QString& /*version*/) +bool TextRegExp::load( TQDomElement top, const TQString& /*version*/) { - Q_ASSERT( top.tagName() == QString::fromLocal8Bit( "Text" ) ); + Q_ASSERT( top.tagName() == TQString::fromLocal8Bit( "Text" ) ); if ( top.hasChildNodes() ) { - QDomNode child = top.firstChild(); + TQDomNode child = top.firstChild(); if ( ! child.isText() ) { KMessageBox::sorry( 0, i18n("<p>Element <b>Text</b> did not contain any textual data.</p>"), i18n("Error While Loading From XML File") ) ; return false; } - QDomText txtNode = child.toText(); + TQDomText txtNode = child.toText(); _text = txtNode.data(); } else { - _text = QString::fromLatin1( "" ); + _text = TQString::fromLatin1( "" ); } return true; |