diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/ruby/debugger/variablewidget.h | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/ruby/debugger/variablewidget.h')
-rw-r--r-- | languages/ruby/debugger/variablewidget.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/languages/ruby/debugger/variablewidget.h b/languages/ruby/debugger/variablewidget.h index 4104ae93..830acf64 100644 --- a/languages/ruby/debugger/variablewidget.h +++ b/languages/ruby/debugger/variablewidget.h @@ -60,12 +60,13 @@ enum DataType { STRING_TYPE }; -class VariableWidget : public QWidget +class VariableWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - VariableWidget( TQWidget *parent=0, const char *name=0 ); + VariableWidget( TQWidget *tqparent=0, const char *name=0 ); VariableTree *varTree() const { return varTree_; } @@ -91,14 +92,15 @@ private: /***************************************************************************/ /***************************************************************************/ -class VariableTree : public KListView, public QToolTip +class VariableTree : public KListView, public TQToolTip { Q_OBJECT + TQ_OBJECT //we need this to be able to emit expandItem() from within LazyFetchItem friend class LazyFetchItem; public: - VariableTree( VariableWidget *parent, const char *name=0 ); + VariableTree( VariableWidget *tqparent, const char *name=0 ); virtual ~VariableTree(); // Clear everything but the Watch frame @@ -170,8 +172,8 @@ private: class LazyFetchItem : public KListViewItem { public: - LazyFetchItem(VariableTree *parent); - LazyFetchItem(LazyFetchItem *parent); + LazyFetchItem(VariableTree *tqparent); + LazyFetchItem(LazyFetchItem *tqparent); virtual ~LazyFetchItem(); @@ -204,7 +206,7 @@ private: class VarItem : public LazyFetchItem { public: - VarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType ); + VarItem( LazyFetchItem *tqparent, const TQString &varName, DataType dataType ); virtual ~VarItem(); @@ -247,7 +249,7 @@ private: class WatchVarItem : public VarItem { public: - WatchVarItem( LazyFetchItem *parent, const TQString &varName, DataType dataType, int displayId = -1); + WatchVarItem( LazyFetchItem *tqparent, const TQString &varName, DataType dataType, int displayId = -1); virtual ~WatchVarItem(); @@ -268,13 +270,13 @@ private: class VarFrameRoot : public LazyFetchItem { public: - VarFrameRoot(VariableTree *parent, int frame, int thread); + VarFrameRoot(VariableTree *tqparent, int frame, int thread); virtual ~VarFrameRoot(); virtual int rtti() const { return RTTI_VAR_FRAME_ROOT; } virtual TQString key(int column, bool /*ascending*/) const { - return TQString("%1%2").arg(RTTI_VAR_FRAME_ROOT).arg(text(column)); + return TQString("%1%2").tqarg(RTTI_VAR_FRAME_ROOT).tqarg(text(column)); } void addLocals(char *variables); @@ -303,13 +305,13 @@ private: class WatchRoot : public LazyFetchItem { public: - WatchRoot(VariableTree * parent); + WatchRoot(VariableTree * tqparent); virtual ~WatchRoot(); virtual int rtti() const { return RTTI_WATCH_ROOT; } virtual TQString key(int column, bool /*ascending*/) const { - return TQString("%1%2").arg(RTTI_WATCH_ROOT).arg(text(column)); + return TQString("%1%2").tqarg(RTTI_WATCH_ROOT).tqarg(text(column)); } void setWatchExpression(char * buf, char * expr); @@ -326,13 +328,13 @@ public: class GlobalRoot : public LazyFetchItem { public: - GlobalRoot(VariableTree * parent); + GlobalRoot(VariableTree * tqparent); virtual ~GlobalRoot(); virtual int rtti() const { return RTTI_GLOBAL_ROOT; } virtual TQString key(int column, bool /*ascending*/) const { - return TQString("%1%2").arg(RTTI_GLOBAL_ROOT).arg(text(column)); + return TQString("%1%2").tqarg(RTTI_GLOBAL_ROOT).tqarg(text(column)); } void setOpen(bool open); |