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/cpp/cppnewclassdlg.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/cpp/cppnewclassdlg.h')
-rw-r--r-- | languages/cpp/cppnewclassdlg.h | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/languages/cpp/cppnewclassdlg.h b/languages/cpp/cppnewclassdlg.h index fcff0bd0..39e9e458 100644 --- a/languages/cpp/cppnewclassdlg.h +++ b/languages/cpp/cppnewclassdlg.h @@ -31,40 +31,40 @@ class CodeModel; template <class T> -class PCheckListItem: public QCheckListItem +class PCheckListItem: public TQCheckListItem { public: - PCheckListItem ( T item, TQCheckListItem * parent, const TQString & text, Type tt = Controller ) : - TQCheckListItem ( parent, text, tt ), m_item( item ) + PCheckListItem ( T item, TQCheckListItem * tqparent, const TQString & text, Type tt = Controller ) : + TQCheckListItem ( tqparent, text, tt ), m_item( item ) {} - PCheckListItem ( T item, TQCheckListItem * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) : - TQCheckListItem ( parent, after, text, tt ), m_item( item ) + PCheckListItem ( T item, TQCheckListItem * tqparent, TQListViewItem * after, const TQString & text, Type tt = Controller ) : + TQCheckListItem ( tqparent, after, text, tt ), m_item( item ) {} - PCheckListItem ( T item, TQListViewItem * parent, const TQString & text, Type tt = Controller ) : - TQCheckListItem ( parent, text, tt ), m_item( item ) + PCheckListItem ( T item, TQListViewItem * tqparent, const TQString & text, Type tt = Controller ) : + TQCheckListItem ( tqparent, text, tt ), m_item( item ) {} - PCheckListItem ( T item, TQListViewItem * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) : - TQCheckListItem ( parent, after, text, tt ), m_item( item ) + PCheckListItem ( T item, TQListViewItem * tqparent, TQListViewItem * after, const TQString & text, Type tt = Controller ) : + TQCheckListItem ( tqparent, after, text, tt ), m_item( item ) {} - PCheckListItem ( T item, TQListView * parent, const TQString & text, Type tt = Controller ) : - TQCheckListItem ( parent, text, tt ), m_item( item ) + PCheckListItem ( T item, TQListView * tqparent, const TQString & text, Type tt = Controller ) : + TQCheckListItem ( tqparent, text, tt ), m_item( item ) {} - PCheckListItem ( T item, TQListView * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) : - TQCheckListItem ( parent, after, text, tt ), m_item( item ) + PCheckListItem ( T item, TQListView * tqparent, TQListViewItem * after, const TQString & text, Type tt = Controller ) : + TQCheckListItem ( tqparent, after, text, tt ), m_item( item ) {} - PCheckListItem ( T item, TQListViewItem * parent, const TQString & text, const TQPixmap & p ) : - TQCheckListItem ( parent, text, p ), m_item( item ) + PCheckListItem ( T item, TQListViewItem * tqparent, const TQString & text, const TQPixmap & p ) : + TQCheckListItem ( tqparent, text, p ), m_item( item ) {} - PCheckListItem ( T item, TQListView * parent, const TQString & text, const TQPixmap & p ) : - TQCheckListItem ( parent, text, p ), m_item( item ) + PCheckListItem ( T item, TQListView * tqparent, const TQString & text, const TQPixmap & p ) : + TQCheckListItem ( tqparent, text, p ), m_item( item ) {} T item() @@ -79,24 +79,24 @@ private: }; template <class T> -class PListViewItem: public QListViewItem +class PListViewItem: public TQListViewItem { public: - PListViewItem ( T item, TQListViewItem * parent, TQListViewItem * after, const TQString & text ) : - TQListViewItem ( parent, after, text ), m_item( item ) + PListViewItem ( T item, TQListViewItem * tqparent, TQListViewItem * after, const TQString & text ) : + TQListViewItem ( tqparent, after, text ), m_item( item ) {} - PListViewItem ( T item, TQListViewItem * parent, const TQString & text ) : - TQListViewItem ( parent, text ), m_item( item ) + PListViewItem ( T item, TQListViewItem * tqparent, const TQString & text ) : + TQListViewItem ( tqparent, text ), m_item( item ) {} - PListViewItem ( T item, TQListView * parent, const TQString & text ) : - TQListViewItem ( parent, text ), m_item( item ) + PListViewItem ( T item, TQListView * tqparent, const TQString & text ) : + TQListViewItem ( tqparent, text ), m_item( item ) {} - PListViewItem ( T item, TQListView * parent, TQListViewItem * after, const TQString & text ) : - TQListViewItem ( parent, after, text ), m_item( item ) + PListViewItem ( T item, TQListView * tqparent, TQListViewItem * after, const TQString & text ) : + TQListViewItem ( tqparent, after, text ), m_item( item ) {} T item() @@ -113,9 +113,10 @@ private: class CppNewClassDialog : public CppNewClassDialogBase { Q_OBJECT + TQ_OBJECT public: - CppNewClassDialog( CppSupportPart *part, TQWidget *parent = 0, const char *name = 0 ); + CppNewClassDialog( CppSupportPart *part, TQWidget *tqparent = 0, const char *name = 0 ); ~CppNewClassDialog(); protected: @@ -140,7 +141,7 @@ protected: virtual void scopeboxActivated( int value ); virtual void checkObjCInheritance( int val ); - virtual void checkQWidgetInheritance( int val ); + virtual void checkTQWidgetInheritance( int val ); virtual void upbaseclass_button_clicked(); virtual void downbaseclass_button_clicked(); @@ -167,9 +168,9 @@ protected: void parseClass( TQString clName, TQString inheritance ); void parsePCSClass( TQString clName, TQString inheritance ); void addToConstructorsList( TQCheckListItem *myClass, FunctionDom method ); - void addToMethodsList( TQListViewItem *parent, FunctionDom method ); - void addToUpgradeList( TQListViewItem *parent, FunctionDom method, TQString modifier ); - void addToUpgradeList( TQListViewItem *parent, VariableDom attr, TQString modifier ); + void addToMethodsList( TQListViewItem *tqparent, FunctionDom method ); + void addToUpgradeList( TQListViewItem *tqparent, FunctionDom method, TQString modifier ); + void addToUpgradeList( TQListViewItem *tqparent, VariableDom attr, TQString modifier ); void clearConstructorsList( bool clean = false ); void clearMethodsList( bool clean = false ); void clearUpgradeList( bool clean = false ); |