diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kspy/spy.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspy/spy.cpp')
-rw-r--r-- | kspy/spy.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kspy/spy.cpp b/kspy/spy.cpp index 341f5b62..3aa18be4 100644 --- a/kspy/spy.cpp +++ b/kspy/spy.cpp @@ -18,12 +18,12 @@ #include <klistviewsearchline.h> #include <klocale.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlistview.h> -#include <qsplitter.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlistview.h> +#include <tqsplitter.h> #include <ktabwidget.h> -#include <qvbox.h> +#include <tqvbox.h> #include "navview.h" #include "propsview.h" @@ -44,15 +44,15 @@ extern "C" } } -Spy::Spy( QWidget *parent, const char *name ) - : QWidget( parent, name ) +Spy::Spy( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { - QVBoxLayout *layout = new QVBoxLayout( this, 11, 6 ); + TQVBoxLayout *layout = new TQVBoxLayout( this, 11, 6 ); - QSplitter *div = new QSplitter( this ); + TQSplitter *div = new TQSplitter( this ); layout->addWidget( div ); - QVBox *leftPane = new QVBox( div ); + TQVBox *leftPane = new TQVBox( div ); KListViewSearchLine *searchLine = new KListViewSearchLine( leftPane, "search line" ); mNavView = new NavView( leftPane, "navigation view" ); @@ -74,14 +74,14 @@ Spy::Spy( QWidget *parent, const char *name ) mNavView->buildTree(); - connect( mNavView, SIGNAL( selected( QObject * ) ), - mPropsView, SLOT( setTarget( QObject * ) ) ); - connect( mNavView, SIGNAL( selected( QObject * ) ), - mSigSlotView, SLOT( setTarget( QObject * ) ) ); - connect( mNavView, SIGNAL( selected( QObject * ) ), - mReceiversView, SLOT( setTarget( QObject * ) ) ); - connect( mNavView, SIGNAL( selected( QObject * ) ), - mClassInfoView, SLOT( setTarget( QObject * ) ) ); + connect( mNavView, TQT_SIGNAL( selected( TQObject * ) ), + mPropsView, TQT_SLOT( setTarget( TQObject * ) ) ); + connect( mNavView, TQT_SIGNAL( selected( TQObject * ) ), + mSigSlotView, TQT_SLOT( setTarget( TQObject * ) ) ); + connect( mNavView, TQT_SIGNAL( selected( TQObject * ) ), + mReceiversView, TQT_SLOT( setTarget( TQObject * ) ) ); + connect( mNavView, TQT_SIGNAL( selected( TQObject * ) ), + mClassInfoView, TQT_SLOT( setTarget( TQObject * ) ) ); } Spy::~Spy() @@ -89,7 +89,7 @@ Spy::~Spy() } -void Spy::setTarget( QWidget *target ) +void Spy::setTarget( TQWidget *target ) { mTarget = target; mPropsView->buildList( mTarget ); @@ -98,14 +98,14 @@ void Spy::setTarget( QWidget *target ) mClassInfoView->buildList( mTarget ); } -void Spy::keyPressEvent( QKeyEvent *event ) +void Spy::keyPressEvent( TQKeyEvent *event ) { if ( event->key() == Qt::Key_Up ) { event->accept(); - QApplication::postEvent( mNavView, new QKeyEvent( QEvent::KeyPress, Qt::Key_Up, 0, 0 ) ); + TQApplication::postEvent( mNavView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Up, 0, 0 ) ); } else if ( event->key() == Qt::Key_Down ) { event->accept(); - QApplication::postEvent( mNavView, new QKeyEvent( QEvent::KeyPress, Qt::Key_Down, 0, 0 ) ); + TQApplication::postEvent( mNavView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Down, 0, 0 ) ); } else if ( event->key() == Qt::Key_Return ) { event->accept(); mNavView->expandVisibleTree(); |