diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /kregexpeditor/verifier.cpp | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/verifier.cpp')
-rw-r--r-- | kregexpeditor/verifier.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kregexpeditor/verifier.cpp b/kregexpeditor/verifier.cpp index 26c1a21..00b75be 100644 --- a/kregexpeditor/verifier.cpp +++ b/kregexpeditor/verifier.cpp @@ -15,7 +15,7 @@ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. **/ -#ifdef QT_ONLY +#ifdef TQT_ONLY #include "compat.h" #else #include <klocale.h> @@ -24,8 +24,8 @@ #include "verifier.h" -Verifier::Verifier( TQWidget* parent, const char* name ) : TQTextEdit( parent, name ) - /* QT_ANCHOR_DO_NOT_WORK: ,_current( 0 ) */ +Verifier::Verifier( TQWidget* tqparent, const char* name ) : TQTextEdit( tqparent, name ) + /* TQT_ANCHOR_DO_NOT_WORK: ,_current( 0 ) */ { _highlighter = 0; setMinimumSize(1,1); @@ -49,7 +49,7 @@ void Verifier::verify( const TQString& reg ) void Verifier::clearRegexp() { if ( _highlighter ) { - _highlighter->setRegExp( TQString::null ); + _highlighter->setRegExp( TQString() ); _highlighter->rehighlight(); } } @@ -73,7 +73,7 @@ void Verifier::setMinimal( bool b ) _highlighter->setMinimal( b ); } -// Qt anchors do not work for <pre>...</pre>, thefore scrolling to next/prev match +// TQt anchors do not work for <pre>...</pre>, thefore scrolling to next/prev match // do not work. Enable this when they work. // void Verifier::gotoFirst() // { @@ -97,7 +97,7 @@ void Verifier::setMinimal( bool b ) // // void Verifier::gotoNum( int which ) // { -// TQString anchor = TQString::fromLatin1("match%1").arg(which); +// TQString anchor = TQString::tqfromLatin1("match%1").tqarg(which); // scrollToAnchor( anchor ); // _current = which; // emit currentChanged( _current ); |