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 /parts/fileview/filetreewidget.cpp | |
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 'parts/fileview/filetreewidget.cpp')
-rw-r--r-- | parts/fileview/filetreewidget.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/parts/fileview/filetreewidget.cpp b/parts/fileview/filetreewidget.cpp index f5aa0ff4..a21ba427 100644 --- a/parts/fileview/filetreewidget.cpp +++ b/parts/fileview/filetreewidget.cpp @@ -51,8 +51,8 @@ using namespace filetreeview; // class FileTreeWidget /////////////////////////////////////////////////////////////////////////////// -FileTreeWidget::FileTreeWidget( FileViewPart *part, TQWidget *parent, KDevVCSFileInfoProvider *infoProvider ) - : KFileTreeView( parent, "filetreewidget" ), m_part( part ), m_rootBranch( 0 ) +FileTreeWidget::FileTreeWidget( FileViewPart *part, TQWidget *tqparent, KDevVCSFileInfoProvider *infoProvider ) + : KFileTreeView( tqparent, "filetreewidget" ), m_part( part ), m_rootBranch( 0 ) { kdDebug(9017) << "Requested FileTree for: " << projectDirectory() << endl; if (versionControl() && infoProvider) @@ -234,7 +234,7 @@ TQString FileTreeWidget::projectDirectory() */ bool FileTreeWidget::isInProject(const TQString &fileName) const { - return m_projectFiles.contains(fileName); + return m_projectFiles.tqcontains(fileName); } /////////////////////////////////////////////////////////////////////////////// @@ -262,10 +262,10 @@ void FileTreeWidget::addProjectFiles( TQStringList const & fileList, bool constr continue; kdDebug(9017) << "adding file: " << *it << endl; const TQString file = projectDirectory() + "/" + ( *it ); - if ( !m_projectFiles.contains( file ) ) + if ( !m_projectFiles.tqcontains( file ) ) { // We got a new file to add to this project. - // Ensure all the parent directories are part of the project set, too. + // Ensure all the tqparent directories are part of the project set, too. TQStringList paths = TQStringList::split( "/", *it); paths.pop_back(); while( !paths.isEmpty() ) @@ -273,10 +273,10 @@ void FileTreeWidget::addProjectFiles( TQStringList const & fileList, bool constr // We are adding the directories from longest (the one containing our file), // to the shortest, measured from root directory of our project. // Whenever we find out that a directory is already recorded as part of our project, - // we may stop adding, because its parent directories were already added - + // we may stop adding, because its tqparent directories were already added - // in some previous addition. TQString joinedPaths = paths.join("/"); - if( m_projectFiles.contains( joinedPaths ) ) + if( m_projectFiles.tqcontains( joinedPaths ) ) break; m_projectFiles.insert( projectDirectory() + "/" + joinedPaths, true ); paths.pop_back(); |