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 --- buildtools/qmake/trollprojectwidget.h | 55 ++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 27 deletions(-) (limited to 'buildtools/qmake/trollprojectwidget.h') diff --git a/buildtools/qmake/trollprojectwidget.h b/buildtools/qmake/trollprojectwidget.h index 7983f4d7..9c5fac62 100644 --- a/buildtools/qmake/trollprojectwidget.h +++ b/buildtools/qmake/trollprojectwidget.h @@ -41,9 +41,10 @@ class TrollProjectPart; class KListView; class ProjectConfigurationDlg; -class TrollProjectWidget : public QVBox +class TrollProjectWidget : public TQVBox { Q_OBJECT + TQ_OBJECT public: TrollProjectWidget( TrollProjectPart *part ); @@ -93,7 +94,7 @@ public: enum TrollProjectView { SubprojectView, DetailsView }; void setLastFocusedView( TrollProjectView view ); enum SaveType { AlwaysSave, NeverSave, Ask }; - QMakeScopeItem* currentSubproject(); + TQMakeScopeItem* currentSubproject(); bool showFilenamesOnly() const; bool showVariablesInTree() const; @@ -131,43 +132,43 @@ private slots: void slotDetailsExecuted( TQListViewItem *item ); void slotDetailsContextMenu( KListView *, TQListViewItem *item, const TQPoint &p ); void slotExcludeFileFromScopeButton(); - void slotAddSubproject( QMakeScopeItem *spitem = 0 ); - void slotRemoveSubproject( QMakeScopeItem *spitem = 0 ); - void slotCreateScope( QMakeScopeItem *spitem = 0 ); - void slotRemoveScope( QMakeScopeItem *spitem = 0 ); - void slotDisableSubproject( QMakeScopeItem* spitem = 0 ); + void slotAddSubproject( TQMakeScopeItem *spitem = 0 ); + void slotRemoveSubproject( TQMakeScopeItem *spitem = 0 ); + void slotCreateScope( TQMakeScopeItem *spitem = 0 ); + void slotRemoveScope( TQMakeScopeItem *spitem = 0 ); + void slotDisableSubproject( TQMakeScopeItem* spitem = 0 ); void slotProjectDirty( const TQString& ); - void createQMakeScopeItems(); + void createTQMakeScopeItems(); private: - void cleanDetailView( QMakeScopeItem *item ); - void runClean( QMakeScopeItem*, const TQString& ); - void buildProjectDetailTree( QMakeScopeItem *item, KListView *listviewControl ); - void removeFile( QMakeScopeItem *spitem, FileItem *fitem ); - void addSubprojectToItem( QMakeScopeItem*, const TQString& ); + void cleanDetailView( TQMakeScopeItem *item ); + void runClean( TQMakeScopeItem*, const TQString& ); + void buildProjectDetailTree( TQMakeScopeItem *item, KListView *listviewControl ); + void removeFile( TQMakeScopeItem *spitem, FileItem *fitem ); + void addSubprojectToItem( TQMakeScopeItem*, const TQString& ); void setupContext(); - // void parseScope(QMakeScopeItem *item,TQString scopeString, Scope *scope); - GroupItem* getInstallRoot( QMakeScopeItem *item ); - GroupItem* getInstallObject( QMakeScopeItem *item, const TQString& objectname ); + // void parseScope(TQMakeScopeItem *item,TQString scopeString, Scope *scope); + GroupItem* getInstallRoot( TQMakeScopeItem *item ); + GroupItem* getInstallObject( TQMakeScopeItem *item, const TQString& objectname ); TQString constructMakeCommandLine( Scope* s = 0 ); - void createMakefileIfMissing( const TQString &dir, QMakeScopeItem *item ); + void createMakefileIfMissing( const TQString &dir, TQMakeScopeItem *item ); - void runQMakeRecursive( QMakeScopeItem* proj); - void buildFile( QMakeScopeItem* spitem, FileItem* fitem); + void runTQMakeRecursive( TQMakeScopeItem* proj); + void buildFile( TQMakeScopeItem* spitem, FileItem* fitem); /*fileName: full base file name like TQFileInfo::baseName ( true )*/ - TQPtrList findSubprojectForFile( TQFileInfo fi ); - void findSubprojectForFile( TQPtrList &list, QMakeScopeItem * item, TQString absFilePath ); - QMakeScopeItem* findSubprojectForPath( const TQString& ); + TQPtrList findSubprojectForFile( TQFileInfo fi ); + void findSubprojectForFile( TQPtrList &list, TQMakeScopeItem * item, TQString absFilePath ); + TQMakeScopeItem* findSubprojectForPath( const TQString& ); // TQString makeEnvironment(); TrollProjectWidget::SaveType dialogSaveBehaviour() const; - QMakeScopeItem *findSubprojectForScope( QMakeScopeItem *scope ); + TQMakeScopeItem *findSubprojectForScope( TQMakeScopeItem *scope ); - void reloadProjectFromFile( QMakeScopeItem* item ); + void reloadProjectFromFile( TQMakeScopeItem* item ); TQMap qmakeEnvironment() const; TQVBox *overviewContainer; @@ -196,8 +197,8 @@ private: TQToolButton *excludeFileFromScopeButton; DomUtil::PairList m_subclasslist; - QMakeScopeItem *m_shownSubproject; - QMakeScopeItem *m_rootSubproject; + TQMakeScopeItem *m_shownSubproject; + TQMakeScopeItem *m_rootSubproject; Scope* m_rootScope; TrollProjectPart *m_part; ProjectConfigurationDlg* m_configDlg; @@ -215,4 +216,4 @@ private: #endif -// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on +// kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on -- cgit v1.2.1