Project: Rename supportsNoProjectTargetPanel to requiresTargetPanel

Just a better name.

Change-Id: I6f3ab3fe6e8f565105a770b8bf8fd198ed6c799f
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2014-07-11 12:04:30 +02:00
parent 611d0016dd
commit 29ca1a5b67
6 changed files with 8 additions and 8 deletions

View File

@@ -476,9 +476,9 @@ void Project::configureAsExampleProject(const QStringList &platforms)
Q_UNUSED(platforms);
}
bool Project::supportsNoTargetPanel() const
bool Project::requiresTargetPanel() const
{
return false;
return true;
}
bool Project::needsSpecialDeployment() const

View File

@@ -128,7 +128,7 @@ public:
virtual bool needsConfiguration() const;
virtual void configureAsExampleProject(const QStringList &platforms);
virtual bool supportsNoTargetPanel() const;
virtual bool requiresTargetPanel() const;
virtual ProjectImporter *createProjectImporter() const;
virtual KitMatcher *createRequiredKitMatcher() const { return 0; }
virtual KitMatcher *createPreferredKitMatcher() const { return 0; }

View File

@@ -392,7 +392,7 @@ void ProjectWindow::showProperties(int index, int subIndex)
m_previousTargetSubIndex = previousPanelWidget->currentSubIndex();
}
if (m_hasTarget.value(project) || !project->supportsNoTargetPanel()) {
if (m_hasTarget.value(project) || project->requiresTargetPanel()) {
if (subIndex == 0) {
// Targets page
removeCurrentWidget();

View File

@@ -69,7 +69,7 @@ int UnconfiguredProjectPanel::priority() const
bool UnconfiguredProjectPanel::supports(Project *project)
{
return project->targets().isEmpty() && project->supportsNoTargetPanel();
return project->targets().isEmpty() && !project->requiresTargetPanel();
}
PropertiesPanel *UnconfiguredProjectPanel::createPanel(Project *project)

View File

@@ -1398,9 +1398,9 @@ void QmakeProject::configureAsExampleProject(const QStringList &platforms)
ProjectExplorerPlugin::instance()->requestProjectModeUpdate(this);
}
bool QmakeProject::supportsNoTargetPanel() const
bool QmakeProject::requiresTargetPanel() const
{
return true;
return false;
}
// All the Qmake run configurations should share code.

View File

@@ -124,7 +124,7 @@ public:
void configureAsExampleProject(const QStringList &platforms);
bool supportsNoTargetPanel() const;
bool requiresTargetPanel() const;
/// \internal
QString disabledReasonForRunConfiguration(const QString &proFilePath);