forked from qt-creator/qt-creator
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:
@@ -64,9 +64,9 @@ void CMakeLocatorFilter::prepareSearch(const QString &entry)
|
|||||||
CMakeProject *cmakeProject = qobject_cast<CMakeProject *>(p);
|
CMakeProject *cmakeProject = qobject_cast<CMakeProject *>(p);
|
||||||
if (!cmakeProject)
|
if (!cmakeProject)
|
||||||
continue;
|
continue;
|
||||||
foreach (const CMakeBuildTarget &ct, cmakeProject->buildTargets()) {
|
foreach (const QString &title, cmakeProject->buildTargetTitles()) {
|
||||||
if (ct.title.contains(entry)) {
|
if (title.contains(entry)) {
|
||||||
Core::LocatorFilterEntry entry(this, ct.title, cmakeProject->projectFilePath().toString());
|
Core::LocatorFilterEntry entry(this, title, cmakeProject->projectFilePath().toString());
|
||||||
entry.extraInfo = FileUtils::shortNativePath(cmakeProject->projectFilePath());
|
entry.extraInfo = FileUtils::shortNativePath(cmakeProject->projectFilePath());
|
||||||
m_result.append(entry);
|
m_result.append(entry);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ public:
|
|||||||
|
|
||||||
QStringList files(FilesMode fileMode) const final;
|
QStringList files(FilesMode fileMode) const final;
|
||||||
QStringList buildTargetTitles(bool runnable = false) const;
|
QStringList buildTargetTitles(bool runnable = false) const;
|
||||||
QList<CMakeBuildTarget> buildTargets() const;
|
|
||||||
bool hasBuildTarget(const QString &title) const;
|
bool hasBuildTarget(const QString &title) const;
|
||||||
|
|
||||||
CMakeBuildTarget buildTargetForTitle(const QString &title);
|
CMakeBuildTarget buildTargetForTitle(const QString &title);
|
||||||
@@ -110,6 +109,8 @@ protected:
|
|||||||
bool setupTarget(ProjectExplorer::Target *t) final;
|
bool setupTarget(ProjectExplorer::Target *t) final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
QList<CMakeBuildTarget> buildTargets() const;
|
||||||
|
|
||||||
void handleActiveTargetChanged();
|
void handleActiveTargetChanged();
|
||||||
void handleActiveBuildConfigurationChanged();
|
void handleActiveBuildConfigurationChanged();
|
||||||
void handleParsingStarted();
|
void handleParsingStarted();
|
||||||
|
|||||||
Reference in New Issue
Block a user