From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: 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 --- languages/cpp/cppnewclassdlg.h | 63 +++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 31 deletions(-) (limited to 'languages/cpp/cppnewclassdlg.h') 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 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 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 ); -- cgit v1.2.3