From a2277b6bc715464e83882b90c2a058139b8a6b54 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 23 Jun 2011 01:42:07 +0000 Subject: 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 --- kregexpeditor/test-without-dl/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kregexpeditor/test-without-dl') diff --git a/kregexpeditor/test-without-dl/main.cpp b/kregexpeditor/test-without-dl/main.cpp index a66355f..5b0fe14 100644 --- a/kregexpeditor/test-without-dl/main.cpp +++ b/kregexpeditor/test-without-dl/main.cpp @@ -19,13 +19,13 @@ #include #include #include "../kregexpeditorgui.h" -class ShootABug :public QObject +class ShootABug :public TQObject { public: virtual bool eventFilter( TQObject* recv, TQEvent* event ) { if ( event->type() == TQEvent::MouseButtonPress && - dynamic_cast(event)->state() == Qt::ControlButton ) { + dynamic_cast(event)->state() == TQt::ControlButton ) { // Ctrl + left mouse click. qDebug("----------------------------------------------------"); @@ -47,12 +47,12 @@ int main( int argc, char* argv[] ) KCmdLineArgs::init(argc, argv, "RegExp Example","",""); KApplication myapp( argc, argv ); - qApp->installEventFilter( new ShootABug() ); + tqApp->installEventFilter( new ShootABug() ); KRegExpEditorGUIDialog* iface = new KRegExpEditorGUIDialog( 0, "_editor", TQStringList() ); - iface->setRegExp( TQString::fromLatin1( "#include" ) ); + iface->setRegExp( TQString::tqfromLatin1( "#include" ) ); iface->doSomething( "setMinimal", (void*) false ); - iface->doSomething( "setSyntax", (void*) new TQString( TQString::fromLatin1( "Emacs" ) ) ); + iface->doSomething( "setSyntax", (void*) new TQString( TQString::tqfromLatin1( "Emacs" ) ) ); iface->doSomething( "setShowSyntaxCombo", (bool*) true ); TQFile file("/packages/kde-src/kdeutils/kregexpeditor/test/main.cpp"); -- cgit v1.2.1