summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/test-without-dl/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/test-without-dl/main.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-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/test-without-dl/main.cpp')
-rw-r--r--kregexpeditor/test-without-dl/main.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kregexpeditor/test-without-dl/main.cpp b/kregexpeditor/test-without-dl/main.cpp
index 54610ac..a66355f 100644
--- a/kregexpeditor/test-without-dl/main.cpp
+++ b/kregexpeditor/test-without-dl/main.cpp
@@ -17,20 +17,20 @@
**/
#include <kapplication.h>
#include <kcmdlineargs.h>
-#include <qfile.h>
+#include <tqfile.h>
#include "../kregexpeditorgui.h"
class ShootABug :public QObject
{
public:
- virtual bool eventFilter( QObject* recv, QEvent* event )
+ virtual bool eventFilter( TQObject* recv, TQEvent* event )
{
- if ( event->type() == QEvent::MouseButtonPress &&
- dynamic_cast<QMouseEvent*>(event)->state() == Qt::ControlButton ) {
+ if ( event->type() == TQEvent::MouseButtonPress &&
+ dynamic_cast<TQMouseEvent*>(event)->state() == Qt::ControlButton ) {
// Ctrl + left mouse click.
qDebug("----------------------------------------------------");
- qDebug((QString("Widget name : ") + QString( recv->name() )).latin1() );
- qDebug((QString("Widget class: ") + QString( recv->className() )).latin1() );
+ qDebug((TQString("Widget name : ") + TQString( recv->name() )).latin1() );
+ qDebug((TQString("Widget class: ") + TQString( recv->className() )).latin1() );
qDebug("\nObject info:");
recv->dumpObjectInfo();
qDebug("\nObject tree:");
@@ -49,16 +49,16 @@ int main( int argc, char* argv[] )
qApp->installEventFilter( new ShootABug() );
- KRegExpEditorGUIDialog* iface = new KRegExpEditorGUIDialog( 0, "_editor", QStringList() );
- iface->setRegExp( QString::fromLatin1( "#include" ) );
+ KRegExpEditorGUIDialog* iface = new KRegExpEditorGUIDialog( 0, "_editor", TQStringList() );
+ iface->setRegExp( TQString::fromLatin1( "#include" ) );
iface->doSomething( "setMinimal", (void*) false );
- iface->doSomething( "setSyntax", (void*) new QString( QString::fromLatin1( "Emacs" ) ) );
+ iface->doSomething( "setSyntax", (void*) new TQString( TQString::fromLatin1( "Emacs" ) ) );
iface->doSomething( "setShowSyntaxCombo", (bool*) true );
- QFile file("/packages/kde-src/kdeutils/kregexpeditor/test/main.cpp");
+ TQFile file("/packages/kde-src/kdeutils/kregexpeditor/test/main.cpp");
file.open(IO_ReadOnly);
- QTextStream stream( &file);
- QString txt = stream.read();
+ TQTextStream stream( &file);
+ TQString txt = stream.read();
iface->setMatchText( txt );
iface->exec();