diff options
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(); |