summaryrefslogtreecommitdiffstats
path: root/kspy/spy.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kspy/spy.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspy/spy.cpp')
-rw-r--r--kspy/spy.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kspy/spy.cpp b/kspy/spy.cpp
index 3aa18be4..6607e484 100644
--- a/kspy/spy.cpp
+++ b/kspy/spy.cpp
@@ -44,13 +44,13 @@ extern "C"
}
}
-Spy::Spy( TQWidget *parent, const char *name )
- : TQWidget( parent, name )
+Spy::Spy( TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
{
- TQVBoxLayout *layout = new TQVBoxLayout( this, 11, 6 );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 11, 6 );
TQSplitter *div = new TQSplitter( this );
- layout->addWidget( div );
+ tqlayout->addWidget( div );
TQVBox *leftPane = new TQVBox( div );
@@ -66,7 +66,7 @@ Spy::Spy( TQWidget *parent, const char *name )
mSigSlotView = new SigSlotView( tabs, "signals and slots view" );
tabs->addTab( mSigSlotView, i18n( "Signals && Slots" ) );
- mReceiversView = new ReceiversView( tabs, "receivers view" );
+ mReceiversView = new ReceiversView( tabs, "tqreceivers view" );
tabs->addTab( mReceiversView, i18n( "Receivers" ) );
mClassInfoView = new ClassInfoView( tabs, "class info view" );
@@ -92,21 +92,21 @@ Spy::~Spy()
void Spy::setTarget( TQWidget *target )
{
mTarget = target;
- mPropsView->buildList( mTarget );
- mSigSlotView->buildList( mTarget );
- mReceiversView->buildList( mTarget );
- mClassInfoView->buildList( mTarget );
+ mPropsView->buildList( TQT_TQOBJECT(mTarget) );
+ mSigSlotView->buildList( TQT_TQOBJECT(mTarget) );
+ mReceiversView->buildList( TQT_TQOBJECT(mTarget) );
+ mClassInfoView->buildList( TQT_TQOBJECT(mTarget) );
}
void Spy::keyPressEvent( TQKeyEvent *event )
{
- if ( event->key() == Qt::Key_Up ) {
+ if ( event->key() == TQt::Key_Up ) {
event->accept();
- TQApplication::postEvent( mNavView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Up, 0, 0 ) );
- } else if ( event->key() == Qt::Key_Down ) {
+ TQApplication::postEvent( mNavView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Up, 0, 0 ) );
+ } else if ( event->key() == TQt::Key_Down ) {
event->accept();
- TQApplication::postEvent( mNavView, new TQKeyEvent( TQEvent::KeyPress, Qt::Key_Down, 0, 0 ) );
- } else if ( event->key() == Qt::Key_Return ) {
+ TQApplication::postEvent( mNavView, new TQKeyEvent( TQEvent::KeyPress, TQt::Key_Down, 0, 0 ) );
+ } else if ( event->key() == TQt::Key_Return ) {
event->accept();
mNavView->expandVisibleTree();
}