[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdevelop/3.4/buildtools/qmake
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-02-18 12:24:36
Message-ID: 1171801476.204436.21006.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 634818 by apaku:
Allow to add files with an absolute pathname, handle this in the part by making them \
relative to the project dir.
BUG: 141853
M +7 -8 trollprojectpart.cpp
--- branches/kdevelop/3.4/buildtools/qmake/trollprojectpart.cpp #634817:634818
@@ -599,16 +599,15 @@
void TrollProjectPart::addFiles ( const QStringList &fileList )
{
QStringList files = fileList;
-// for (QStringList::iterator it = files.begin(); it != files.end(); ++it)
-// {
-// // if (!(*it).contains(projectDirectory()))
-// kdDebug(9024) << "Checking if isProjFile:" << (*it) << "?" << \
isProjectFile(projectDirectory() + QString( QChar( QDir::separator() ) ) + (*it)) << \
"|" << projectDirectory() << endl;
-// if (!isProjectFile(projectDirectory() + QString( QChar( QDir::separator() \
) ) + (*it)))
-// *it = projectDirectory() + QString( QChar( QDir::separator() ) ) + \
(*it);
-// }
+ for (QStringList::iterator it = files.begin(); it != files.end(); ++it)
+ {
+ if( !QFileInfo( *it ).isRelative() )
+ {
+ *it = URLUtil::relativePathToFile( projectDirectory(), *it );
+ }
+ }
m_widget->addFiles(files);
-// emit addedFilesToProject ( files );
}
void TrollProjectPart::removeFile(const QString & /* fileName */)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic