summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/test-without-dl
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /kregexpeditor/test-without-dl
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-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/test-without-dl')
-rw-r--r--kregexpeditor/test-without-dl/main.cpp10
1 files changed, 5 insertions, 5 deletions
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 <kcmdlineargs.h>
#include <tqfile.h>
#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<TQMouseEvent*>(event)->state() == Qt::ControlButton ) {
+ dynamic_cast<TQMouseEvent*>(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");