CMake: Keep buildTargets private

Nobody needs those, so do not export them.

Change-Id: Ia8866ea2a514855c029974645d9b3f3dbcaa14ed
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2016-10-06 11:31:19 +02:00
parent 9b40c1fc04
commit d41e10a595
2 changed files with 5 additions and 4 deletions

View File

@@ -64,9 +64,9 @@ void CMakeLocatorFilter::prepareSearch(const QString &entry)
CMakeProject *cmakeProject = qobject_cast<CMakeProject *>(p);
if (!cmakeProject)
continue;
foreach (const CMakeBuildTarget &ct, cmakeProject->buildTargets()) {
if (ct.title.contains(entry)) {
Core::LocatorFilterEntry entry(this, ct.title, cmakeProject->projectFilePath().toString());
foreach (const QString &title, cmakeProject->buildTargetTitles()) {
if (title.contains(entry)) {
Core::LocatorFilterEntry entry(this, title, cmakeProject->projectFilePath().toString());
entry.extraInfo = FileUtils::shortNativePath(cmakeProject->projectFilePath());
m_result.append(entry);
}

View File

@@ -88,7 +88,6 @@ public:
QStringList files(FilesMode fileMode) const final;
QStringList buildTargetTitles(bool runnable = false) const;
QList<CMakeBuildTarget> buildTargets() const;
bool hasBuildTarget(const QString &title) const;
CMakeBuildTarget buildTargetForTitle(const QString &title);
@@ -110,6 +109,8 @@ protected:
bool setupTarget(ProjectExplorer::Target *t) final;
private:
QList<CMakeBuildTarget> buildTargets() const;
void handleActiveTargetChanged();
void handleActiveBuildConfigurationChanged();
void handleParsingStarted();