forked from qt-creator/qt-creator
Add a dialog for editing the file list of generic projects
Task-Nr: QTCREATORBUG-5112 Change-Id: Ic39c4346f2c64b05c314f3c03d963994e043dc45 Reviewed-on: http://codereview.qt.nokia.com/500 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
This commit is contained in:
@@ -179,6 +179,16 @@ bool GenericProject::removeFiles(const QStringList &filePaths)
|
||||
return saveRawFileList(newList);
|
||||
}
|
||||
|
||||
bool GenericProject::setFiles(const QStringList &filePaths)
|
||||
{
|
||||
QStringList newList;
|
||||
QDir baseDir(QFileInfo(m_fileName).dir());
|
||||
foreach (const QString &filePath, filePaths)
|
||||
newList.append(baseDir.relativeFilePath(filePath));
|
||||
|
||||
return saveRawFileList(newList);
|
||||
}
|
||||
|
||||
void GenericProject::parseProject(RefreshOptions options)
|
||||
{
|
||||
if (options & Files) {
|
||||
|
||||
Reference in New Issue
Block a user