forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
|
||||
void configureAsExampleProject(const QStringList &platforms);
|
||||
|
||||
bool supportsNoTargetPanel() const;
|
||||
bool requiresTargetPanel() const;
|
||||
|
||||
/// \internal
|
||||
QString disabledReasonForRunConfiguration(const QString &proFilePath);
|
||||
|
||||
Reference in New Issue
Block a user