diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-05-02 12:53:36 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-05-06 11:48:10 +0200 |
commit | dc61b989acaa88c892b682ea17985315f3f9206f (patch) | |
tree | 32bf7437b1beb9eed01e74db029113c9c9088e44 /src/plugins/autotoolsprojectmanager | |
parent | 0814cc112abac5c18e873dcfa388f54ecac7b8a8 (diff) | |
download | qt-creator-dc61b989acaa88c892b682ea17985315f3f9206f.tar.gz |
Project: Use Utils::FileName as return type for projectDirectory(...)
Change-Id: I3ea10aa204b1ea41702edab09884b416cd6d9e06
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp | 5 | ||||
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp b/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp index efe1b079e6..121f72e8ce 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsbuildconfiguration.cpp @@ -97,8 +97,7 @@ int AutotoolsBuildConfigurationFactory::priority(const Target *parent) const QList<BuildInfo *> AutotoolsBuildConfigurationFactory::availableBuilds(const Target *parent) const { QList<BuildInfo *> result; - result << createBuildInfo(parent->kit(), - Utils::FileName::fromString(parent->project()->projectDirectory())); + result << createBuildInfo(parent->kit(), parent->project()->projectDirectory()); return result; } @@ -135,7 +134,7 @@ BuildConfiguration *AutotoolsBuildConfigurationFactory::create(Target *parent, c // ### Build Steps Build ### // autogen.sh or autoreconf - QFile autogenFile(parent->project()->projectDirectory() + QLatin1String("/autogen.sh")); + QFile autogenFile(parent->project()->projectDirectory().toString() + QLatin1String("/autogen.sh")); if (autogenFile.exists()) { AutogenStep *autogenStep = new AutogenStep(buildSteps); buildSteps->insertStep(0, autogenStep); diff --git a/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp b/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp index 3e0f90723a..354597258d 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsbuildsettingswidget.cpp @@ -59,13 +59,13 @@ AutotoolsBuildSettingsWidget::AutotoolsBuildSettingsWidget(AutotoolsBuildConfigu m_pathChooser = new Utils::PathChooser(this); m_pathChooser->setEnabled(true); m_pathChooser->setExpectedKind(Utils::PathChooser::Directory); - m_pathChooser->setBaseDirectory(bc->target()->project()->projectDirectory()); + m_pathChooser->setBaseFileName(bc->target()->project()->projectDirectory()); m_pathChooser->setEnvironment(bc->environment()); m_pathChooser->setHistoryCompleter(QLatin1String("AutoTools.BuildDir.History")); fl->addRow(tr("Build directory:"), m_pathChooser); connect(m_pathChooser, SIGNAL(changed(QString)), this, SLOT(buildDirectoryChanged())); - m_pathChooser->setBaseDirectory(bc->target()->project()->projectDirectory()); + m_pathChooser->setBaseFileName(bc->target()->project()->projectDirectory()); m_pathChooser->setPath(m_buildConfiguration->rawBuildDirectory().toString()); setDisplayName(tr("Autotools Manager")); |