forked from qt-creator/qt-creator
ProjectManager: Return FilePaths from ProjectImporter::importCandidates
Proliferates FilePath use a bit further. Actual changes to the individual importers are left for further patches. Change-Id: Ie7c6b2e3f4ac7d0eca6d2f56d30fb23354bb404b Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -16,7 +16,7 @@ MesonProjectImporter::MesonProjectImporter(const Utils::FilePath &path)
|
||||
: QtSupport::QtProjectImporter{path}
|
||||
{}
|
||||
|
||||
QStringList MesonProjectImporter::importCandidates()
|
||||
Utils::FilePaths MesonProjectImporter::importCandidates()
|
||||
{
|
||||
//TODO, this can be done later
|
||||
return {};
|
||||
|
||||
@@ -3,21 +3,18 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "exewrappers/mesonwrapper.h"
|
||||
|
||||
#include <projectexplorer/buildinfo.h>
|
||||
#include <projectexplorer/kit.h>
|
||||
|
||||
#include <qtsupport/qtprojectimporter.h>
|
||||
|
||||
namespace MesonProjectManager {
|
||||
namespace Internal {
|
||||
namespace MesonProjectManager::Internal {
|
||||
|
||||
class MesonProjectImporter final : public QtSupport::QtProjectImporter
|
||||
{
|
||||
public:
|
||||
MesonProjectImporter(const Utils::FilePath &path);
|
||||
QStringList importCandidates() final;
|
||||
Utils::FilePaths importCandidates() final;
|
||||
|
||||
private:
|
||||
// importPath is an existing directory at this point!
|
||||
@@ -32,5 +29,4 @@ private:
|
||||
void deleteDirectoryData(void *directoryData) const final;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace MesonProjectManager
|
||||
} // MesonProjectManager::Internal
|
||||
|
||||
Reference in New Issue
Block a user