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);
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user