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 | |
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')
-rw-r--r-- | kspy/classinfoview.cpp | 18 | ||||
-rw-r--r-- | kspy/classinfoview.h | 8 | ||||
-rw-r--r-- | kspy/kspy.h | 2 | ||||
-rw-r--r-- | kspy/navview.cpp | 28 | ||||
-rw-r--r-- | kspy/navview.h | 8 | ||||
-rw-r--r-- | kspy/navviewitem.cpp | 6 | ||||
-rw-r--r-- | kspy/navviewitem.h | 8 | ||||
-rw-r--r-- | kspy/propsview.cpp | 116 | ||||
-rw-r--r-- | kspy/propsview.h | 8 | ||||
-rw-r--r-- | kspy/receiversview.cpp | 30 | ||||
-rw-r--r-- | kspy/receiversview.h | 8 | ||||
-rw-r--r-- | kspy/sigslotview.cpp | 26 | ||||
-rw-r--r-- | kspy/sigslotview.h | 8 | ||||
-rw-r--r-- | kspy/spy.cpp | 44 | ||||
-rw-r--r-- | kspy/spy.h | 10 |
15 files changed, 164 insertions, 164 deletions
diff --git a/kspy/classinfoview.cpp b/kspy/classinfoview.cpp index 1b976cfa..b8b12167 100644 --- a/kspy/classinfoview.cpp +++ b/kspy/classinfoview.cpp @@ -15,17 +15,17 @@ * * ***************************************************************************/ -#include <qobjectdict.h> -#include <qobjectlist.h> -#include <qmetaobject.h> -#include <qstrlist.h> -#include <qvariant.h> +#include <tqobjectdict.h> +#include <tqobjectlist.h> +#include <tqmetaobject.h> +#include <tqstrlist.h> +#include <tqvariant.h> #include <klocale.h> #include "classinfoview.h" -ClassInfoView::ClassInfoView(QWidget *parent, const char *name ) : KListView(parent,name) +ClassInfoView::ClassInfoView(TQWidget *parent, const char *name ) : KListView(parent,name) { addColumn( i18n( "Name" ) ); addColumn( i18n( "Value" ) ); @@ -39,9 +39,9 @@ ClassInfoView::~ClassInfoView() { } -void ClassInfoView::buildList( QObject *o ) +void ClassInfoView::buildList( TQObject *o ) { - QMetaObject *mo = o->metaObject(); + TQMetaObject *mo = o->metaObject(); for (int index = 0; index < mo->numClassInfo(true); index++) { const QClassInfo * classInfo = mo->classInfo(index, true); @@ -49,7 +49,7 @@ void ClassInfoView::buildList( QObject *o ) } } -void ClassInfoView::setTarget( QObject *o ) +void ClassInfoView::setTarget( TQObject *o ) { clear(); buildList( o ); diff --git a/kspy/classinfoview.h b/kspy/classinfoview.h index e8b4440b..eca9e719 100644 --- a/kspy/classinfoview.h +++ b/kspy/classinfoview.h @@ -18,7 +18,7 @@ #ifndef CLASSINFOVIEW_H #define CLASSINFOVIEW_H -#include <qwidget.h> +#include <tqwidget.h> #include <klistview.h> /** @@ -28,13 +28,13 @@ class ClassInfoView : public KListView { Q_OBJECT public: - ClassInfoView(QWidget *parent=0, const char *name=0); + ClassInfoView(TQWidget *parent=0, const char *name=0); ~ClassInfoView(); - void buildList( QObject *o ); + void buildList( TQObject *o ); public slots: - void setTarget( QObject * ); + void setTarget( TQObject * ); }; #endif diff --git a/kspy/kspy.h b/kspy/kspy.h index e2878125..007c0d10 100644 --- a/kspy/kspy.h +++ b/kspy/kspy.h @@ -6,7 +6,7 @@ #include <klibloader.h> /** - * Loader for the QObject debugging tool. The usage is simple, just call + * Loader for the TQObject debugging tool. The usage is simple, just call * KSpy::invoke(), then use the spy window to examine the state of your * QObjects. * diff --git a/kspy/navview.cpp b/kspy/navview.cpp index 8f6afc8e..338922d5 100644 --- a/kspy/navview.cpp +++ b/kspy/navview.cpp @@ -15,15 +15,15 @@ * * ***************************************************************************/ -#include <qobjectlist.h> -#include <qobjectdict.h> +#include <tqobjectlist.h> +#include <tqobjectdict.h> #include <klocale.h> #include "navview.h" #include "navviewitem.h" -NavView::NavView(QWidget *parent, const char *name ) : KListView(parent,name) +NavView::NavView(TQWidget *parent, const char *name ) : KListView(parent,name) { addColumn( i18n( "Name" ) ); addColumn( i18n( "Type" ) ); @@ -32,8 +32,8 @@ NavView::NavView(QWidget *parent, const char *name ) : KListView(parent,name) setAllColumnsShowFocus( true ); setFullWidth( true ); - connect( this, SIGNAL( selectionChanged( QListViewItem * ) ), - this, SLOT( selectItem( QListViewItem * ) ) ); + connect( this, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), + this, TQT_SLOT( selectItem( TQListViewItem * ) ) ); } NavView::~NavView(){ @@ -41,10 +41,10 @@ NavView::~NavView(){ void NavView::buildTree() { - const QObjectList *roots = QObject::objectTrees(); - QObjectListIt it( *roots ); + const TQObjectList *roots = TQObject::objectTrees(); + TQObjectListIt it( *roots ); - QObject * obj; + TQObject * obj; while ( (obj = it.current()) != 0 ) { ++it; NavViewItem *item = new NavViewItem( this, obj ); @@ -54,8 +54,8 @@ void NavView::buildTree() void NavView::expandVisibleTree() { - QListViewItemIterator it( this, QListViewItemIterator::Visible | - QListViewItemIterator::Expandable ); + TQListViewItemIterator it( this, TQListViewItemIterator::Visible | + TQListViewItemIterator::Expandable ); while ( it.current() ) { setOpen( *it, true ); @@ -63,7 +63,7 @@ void NavView::expandVisibleTree() } } -void NavView::selectItem( QListViewItem *item ) +void NavView::selectItem( TQListViewItem *item ) { NavViewItem *navItem = static_cast<NavViewItem*>( item ); @@ -72,12 +72,12 @@ void NavView::selectItem( QListViewItem *item ) void NavView::createSubTree( NavViewItem *parent ) { - const QObjectList *kids = parent->data->children(); + const TQObjectList *kids = parent->data->children(); if ( !kids ) return; - QObject * obj; - QObjectListIt it( *kids ); + TQObject * obj; + TQObjectListIt it( *kids ); while ( (obj=it.current()) != 0 ) { ++it; NavViewItem *item = new NavViewItem( parent, obj ); diff --git a/kspy/navview.h b/kspy/navview.h index 326f7790..947c3572 100644 --- a/kspy/navview.h +++ b/kspy/navview.h @@ -18,7 +18,7 @@ #ifndef NAVVIEW_H #define NAVVIEW_H -#include <qwidget.h> +#include <tqwidget.h> #include <klistview.h> class NavViewItem; @@ -31,7 +31,7 @@ class NavView : public KListView Q_OBJECT public: - NavView( QWidget *parent = 0, const char *name = 0 ); + NavView( TQWidget *parent = 0, const char *name = 0 ); ~NavView(); /** @@ -45,10 +45,10 @@ class NavView : public KListView void expandVisibleTree(); signals: - void selected( QObject *object ); + void selected( TQObject *object ); protected slots: - void selectItem( QListViewItem *item ); + void selectItem( TQListViewItem *item ); private: void createSubTree( NavViewItem* ); diff --git a/kspy/navviewitem.cpp b/kspy/navviewitem.cpp index de372b4f..641332ac 100644 --- a/kspy/navviewitem.cpp +++ b/kspy/navviewitem.cpp @@ -15,19 +15,19 @@ * * ***************************************************************************/ -#include <qobject.h> +#include <tqobject.h> #include "navview.h" #include "navviewitem.h" -NavViewItem::NavViewItem(NavView *parent, QObject *obj ) +NavViewItem::NavViewItem(NavView *parent, TQObject *obj ) : KListViewItem(parent, obj->name(), obj->className() ) { data = obj; setExpandable( true ); } -NavViewItem::NavViewItem(NavViewItem *parent, QObject *obj ) +NavViewItem::NavViewItem(NavViewItem *parent, TQObject *obj ) : KListViewItem(parent, obj->name(), obj->className() ) { data = obj; diff --git a/kspy/navviewitem.h b/kspy/navviewitem.h index 35a66c07..d9b7ba23 100644 --- a/kspy/navviewitem.h +++ b/kspy/navviewitem.h @@ -18,7 +18,7 @@ #ifndef NAVVIEWITEM_H #define NAVVIEWITEM_H -#include <qlistview.h> +#include <tqlistview.h> class NavView; @@ -28,11 +28,11 @@ class NavView; class NavViewItem : public KListViewItem { public: - NavViewItem(NavView *parent, QObject *item ); - NavViewItem(NavViewItem *parent, QObject *item ); + NavViewItem(NavView *parent, TQObject *item ); + NavViewItem(NavViewItem *parent, TQObject *item ); ~NavViewItem(); - QObject *data; + TQObject *data; }; #endif diff --git a/kspy/propsview.cpp b/kspy/propsview.cpp index 12b855c0..50f60bed 100644 --- a/kspy/propsview.cpp +++ b/kspy/propsview.cpp @@ -15,12 +15,12 @@ * * ***************************************************************************/ -#include <qobjectdict.h> -#include <qobjectlist.h> -#include <qmetaobject.h> -#include <qstrlist.h> -#include <qvariant.h> -#include <qcursor.h> +#include <tqobjectdict.h> +#include <tqobjectlist.h> +#include <tqmetaobject.h> +#include <tqstrlist.h> +#include <tqvariant.h> +#include <tqcursor.h> #include <klocale.h> @@ -29,26 +29,26 @@ class KSpyItem : KListViewItem { public: - KSpyItem( QListView * parent, QString label1, QString label2 = QString::null, QString label3 = QString::null, QString label4 = QString::null, QString label5 = QString::null, QString label6 = QString::null ) + KSpyItem( TQListView * parent, TQString label1, TQString label2 = TQString::null, TQString label3 = TQString::null, TQString label4 = TQString::null, TQString label5 = TQString::null, TQString label6 = TQString::null ) : KListViewItem(parent, label1, label2, label3, label4, label5, label6) { } protected: - void paintCell( QPainter * p, const QColorGroup & cg, + void paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int alignment ) { - if (column == 1 && text(2) == "QColor") { - QColorGroup color_cg( cg.foreground(), cg.background(), + if (column == 1 && text(2) == "TQColor") { + TQColorGroup color_cg( cg.foreground(), cg.background(), cg.light(), cg.dark(), cg.mid(), - QColor(text(1)), QColor(text(1)) ); - QListViewItem::paintCell(p, color_cg, column, width, alignment); + TQColor(text(1)), TQColor(text(1)) ); + TQListViewItem::paintCell(p, color_cg, column, width, alignment); } else { KListViewItem::paintCell(p, cg, column, width, alignment); } } }; -PropsView::PropsView(QWidget *parent, const char *name ) : KListView(parent,name) +PropsView::PropsView(TQWidget *parent, const char *name ) : KListView(parent,name) { addColumn( i18n( "Name" ) ); addColumn( i18n( "Value" ) ); @@ -67,41 +67,41 @@ PropsView::~PropsView() { } -void PropsView::buildList( QObject *o ) +void PropsView::buildList( TQObject *o ) { - QMetaObject *mo = o->metaObject(); - QStrList names = mo->propertyNames( true ); + TQMetaObject *mo = o->metaObject(); + TQStrList names = mo->propertyNames( true ); for ( uint i = 0; i < names.count(); i++ ) { char *prop = names.at( i ); - QVariant v = o->property( prop ); - const QMetaProperty *mp = mo->property( mo->findProperty(prop, true), true ); + TQVariant v = o->property( prop ); + const TQMetaProperty *mp = mo->property( mo->findProperty(prop, true), true ); - QString val( "????" ); + TQString val( "????" ); switch( v.type() ) { - case QVariant::String: - case QVariant::CString: + case TQVariant::String: + case TQVariant::CString: val = v.toString(); break; - case QVariant::Bool: + case TQVariant::Bool: val = ( v.toBool() ? "True" : "False" ); break; - case QVariant::Color: + case TQVariant::Color: { - QColor c = v.toColor(); + TQColor c = v.toColor(); val = c.name(); break; } - case QVariant::Cursor: + case TQVariant::Cursor: { - QCursor c = v.toCursor(); - val = QString("shape=%1").arg(c.shape()); + TQCursor c = v.toCursor(); + val = TQString("shape=%1").arg(c.shape()); break; } - case QVariant::Font: + case TQVariant::Font: { - QFont f = v.toFont(); - val = QString("family=%1, pointSize=%2, weight=%3, italic=%4, bold=%5, underline=%6, strikeOut=%7") + TQFont f = v.toFont(); + val = TQString("family=%1, pointSize=%2, weight=%3, italic=%4, bold=%5, underline=%6, strikeOut=%7") .arg(f.family()) .arg(f.pointSize()) .arg(f.weight()) @@ -111,61 +111,61 @@ void PropsView::buildList( QObject *o ) .arg(f.strikeOut()); break; } - case QVariant::Int: + case TQVariant::Int: val.setNum( v.toInt() ); if (mp->isEnumType()) { - QMetaObject * metaObject = *(mp->meta); - val = QString("%1::%2").arg(metaObject->className()).arg(mp->valueToKey(val.toInt())); + TQMetaObject * metaObject = *(mp->meta); + val = TQString("%1::%2").arg(metaObject->className()).arg(mp->valueToKey(val.toInt())); } break; - case QVariant::Point: + case TQVariant::Point: { - QPoint p = v.toPoint(); - val = QString("x=%1, y=%2").arg(p.x()).arg(p.y()); + TQPoint p = v.toPoint(); + val = TQString("x=%1, y=%2").arg(p.x()).arg(p.y()); break; } - case QVariant::Rect: + case TQVariant::Rect: { - QRect r = v.toRect(); - val = QString("left=%1, right=%2, top=%3, bottom=%4") + TQRect r = v.toRect(); + val = TQString("left=%1, right=%2, top=%3, bottom=%4") .arg(r.left()) .arg(r.right()) .arg(r.top()) .arg(r.bottom()); break; } - case QVariant::Size: + case TQVariant::Size: { - QSize s = v.toSize(); - val = QString("width=%1, height=%2").arg(s.width()).arg(s.height()); + TQSize s = v.toSize(); + val = TQString("width=%1, height=%2").arg(s.width()).arg(s.height()); break; } - case QVariant::SizePolicy: + case TQVariant::SizePolicy: { - QSizePolicy s = v.toSizePolicy(); - val = QString("horData=%1, verData=%2").arg(s.horData()).arg(s.verData()); + TQSizePolicy s = v.toSizePolicy(); + val = TQString("horData=%1, verData=%2").arg(s.horData()).arg(s.verData()); break; } - case QVariant::Double: + case TQVariant::Double: val.setNum( v.toDouble() ); break; default: break; } - QString ro("R/O"); - QString rw("R/W"); - QString st("Set"); - QString et("Enum"); - QString yes("Yes"); - QString no("No"); + TQString ro("R/O"); + TQString rw("R/W"); + TQString st("Set"); + TQString et("Enum"); + TQString yes("Yes"); + TQString no("No"); - QString writable = ( mp->writable() ? rw : ro ); - QString setType = ( mp->isSetType() ? st : QString::null ); - QString enumType = ( mp->isEnumType() ? et : QString::null ); - QString designable = ( mp->designable(o) ? yes : no ); + TQString writable = ( mp->writable() ? rw : ro ); + TQString setType = ( mp->isSetType() ? st : TQString::null ); + TQString enumType = ( mp->isEnumType() ? et : TQString::null ); + TQString designable = ( mp->designable(o) ? yes : no ); - QString flags; + TQString flags; bool first = true; if ( !setType.isNull() ) { if ( first ) @@ -188,7 +188,7 @@ void PropsView::buildList( QObject *o ) } } -void PropsView::setTarget( QObject *o ) +void PropsView::setTarget( TQObject *o ) { clear(); buildList( o ); diff --git a/kspy/propsview.h b/kspy/propsview.h index 62eb5e8d..3d0afe80 100644 --- a/kspy/propsview.h +++ b/kspy/propsview.h @@ -18,7 +18,7 @@ #ifndef PROPSVIEW_H #define PROPSVIEW_H -#include <qwidget.h> +#include <tqwidget.h> #include <klistview.h> /** @@ -28,13 +28,13 @@ class PropsView : public KListView { Q_OBJECT public: - PropsView(QWidget *parent=0, const char *name=0); + PropsView(TQWidget *parent=0, const char *name=0); ~PropsView(); - void buildList( QObject *o ); + void buildList( TQObject *o ); public slots: - void setTarget( QObject * ); + void setTarget( TQObject * ); }; #endif diff --git a/kspy/receiversview.cpp b/kspy/receiversview.cpp index e1da1127..36582640 100644 --- a/kspy/receiversview.cpp +++ b/kspy/receiversview.cpp @@ -15,23 +15,23 @@ * * ***************************************************************************/ -#include <qobjectdict.h> -#include <qobjectlist.h> -#include <qmetaobject.h> -#include <qstrlist.h> -#include <qvariant.h> -#include <qsignalslotimp.h> +#include <tqobjectdict.h> +#include <tqobjectlist.h> +#include <tqmetaobject.h> +#include <tqstrlist.h> +#include <tqvariant.h> +#include <tqsignalslotimp.h> #include <klocale.h> #include "receiversview.h" -class UnencapsulatedQObject : public QObject { +class UnencapsulatedQObject : public TQObject { public: - QConnectionList *public_receivers(int signal) const { return receivers(signal); } + TQConnectionList *public_receivers(int signal) const { return receivers(signal); } }; -ReceiversView::ReceiversView(QWidget *parent, const char *name ) : KListView(parent,name) +ReceiversView::ReceiversView(TQWidget *parent, const char *name ) : KListView(parent,name) { addColumn( i18n( "Object" ) ); addColumn( i18n( "Type" ) ); @@ -46,19 +46,19 @@ ReceiversView::~ReceiversView() { } -void ReceiversView::buildList( QObject *o ) +void ReceiversView::buildList( TQObject *o ) { - QMetaObject *mo = o->metaObject(); + TQMetaObject *mo = o->metaObject(); UnencapsulatedQObject * qobject = (UnencapsulatedQObject *) o; - QStrList signalNames = mo->signalNames(true); + TQStrList signalNames = mo->signalNames(true); for (int sig = 0; sig < mo->numSignals(true); sig++) { - QConnectionList * clist = qobject->public_receivers(sig); + TQConnectionList * clist = qobject->public_receivers(sig); if (clist != 0) { KListViewItem *conn = new KListViewItem( this, signalNames.at(sig) ); - for ( QConnection * connection = clist->first(); + for ( TQConnection * connection = clist->first(); connection != 0; connection = clist->next() ) { @@ -71,7 +71,7 @@ void ReceiversView::buildList( QObject *o ) } } -void ReceiversView::setTarget( QObject *o ) +void ReceiversView::setTarget( TQObject *o ) { clear(); buildList( o ); diff --git a/kspy/receiversview.h b/kspy/receiversview.h index 31768883..b654687a 100644 --- a/kspy/receiversview.h +++ b/kspy/receiversview.h @@ -18,7 +18,7 @@ #ifndef RECEIVERSVIEW_H #define RECEIVERSVIEW_H -#include <qwidget.h> +#include <tqwidget.h> #include <klistview.h> /** @@ -28,13 +28,13 @@ class ReceiversView : public KListView { Q_OBJECT public: - ReceiversView(QWidget *parent=0, const char *name=0); + ReceiversView(TQWidget *parent=0, const char *name=0); ~ReceiversView(); - void buildList( QObject *o ); + void buildList( TQObject *o ); public slots: - void setTarget( QObject * ); + void setTarget( TQObject * ); }; #endif diff --git a/kspy/sigslotview.cpp b/kspy/sigslotview.cpp index 2e04cfa7..d6fdba24 100644 --- a/kspy/sigslotview.cpp +++ b/kspy/sigslotview.cpp @@ -15,17 +15,17 @@ * * ***************************************************************************/ -#include <qobjectdict.h> -#include <qobjectlist.h> -#include <qmetaobject.h> -#include <qstrlist.h> -#include <qvariant.h> +#include <tqobjectdict.h> +#include <tqobjectlist.h> +#include <tqmetaobject.h> +#include <tqstrlist.h> +#include <tqvariant.h> #include <klocale.h> #include "sigslotview.h" -SigSlotView::SigSlotView(QWidget *parent, const char *name ) : KListView(parent,name) +SigSlotView::SigSlotView(TQWidget *parent, const char *name ) : KListView(parent,name) { addColumn( i18n( "Signals/Slots" ) ); @@ -38,13 +38,13 @@ SigSlotView::~SigSlotView() { } -void SigSlotView::buildList( QObject *o ) +void SigSlotView::buildList( TQObject *o ) { - QMetaObject *mo = o->metaObject(); + TQMetaObject *mo = o->metaObject(); KListViewItem *sigs = new KListViewItem( this, "Signals" ); - QStrList sigList = mo->signalNames( true ); - QStrListIterator sigIt( sigList ); + TQStrList sigList = mo->signalNames( true ); + TQStrListIterator sigIt( sigList ); char *si; while ( (si=sigIt.current()) != 0 ) { ++sigIt; @@ -52,8 +52,8 @@ void SigSlotView::buildList( QObject *o ) } KListViewItem *slts = new KListViewItem( this, "Slots" ); - QStrList sltList = mo->slotNames( true ); - QStrListIterator sltIt( sltList ); + TQStrList sltList = mo->slotNames( true ); + TQStrListIterator sltIt( sltList ); char *sl; while ( (sl=sltIt.current()) != 0 ) { ++sltIt; @@ -64,7 +64,7 @@ void SigSlotView::buildList( QObject *o ) setOpen( slts, false ); } -void SigSlotView::setTarget( QObject *o ) +void SigSlotView::setTarget( TQObject *o ) { clear(); buildList( o ); diff --git a/kspy/sigslotview.h b/kspy/sigslotview.h index 86138fd1..723069cc 100644 --- a/kspy/sigslotview.h +++ b/kspy/sigslotview.h @@ -18,7 +18,7 @@ #ifndef SIGSLOTVIEW_H #define SIGSLOTVIEW_H -#include <qwidget.h> +#include <tqwidget.h> #include <klistview.h> /** @@ -28,13 +28,13 @@ class SigSlotView : public KListView { Q_OBJECT public: - SigSlotView(QWidget *parent=0, const char *name=0); + SigSlotView(TQWidget *parent=0, const char *name=0); ~SigSlotView(); - void buildList( QObject *o ); + void buildList( TQObject *o ); public slots: - void setTarget( QObject * ); + void setTarget( TQObject * ); }; #endif 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(); @@ -23,7 +23,7 @@ #endif #include <kapplication.h> -#include <qwidget.h> +#include <tqwidget.h> class NavView; class PropsView; @@ -39,16 +39,16 @@ class Spy : public QWidget Q_OBJECT public: - Spy( QWidget *parent = 0, const char *name = 0 ); + Spy( TQWidget *parent = 0, const char *name = 0 ); ~Spy(); - void setTarget( QWidget *target ); + void setTarget( TQWidget *target ); protected: - virtual void keyPressEvent( QKeyEvent* ); + virtual void keyPressEvent( TQKeyEvent* ); private: - QWidget *mTarget; + TQWidget *mTarget; PropsView *mPropsView; SigSlotView *mSigSlotView; ReceiversView *mReceiversView; |