summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-07-27 12:50:42 +0200
committerdt <qtc-committer@nokia.com>2009-07-27 12:50:42 +0200
commiteb07777af648c132bba8868421bd2f9dbed46de0 (patch)
tree739a215e0dfb0f7e52d88c00dad9a331d16afe38 /src/plugins
parent1ffd0bbfed6479a2cb225117a9691059a0a20fa5 (diff)
downloadqt-creator-eb07777af648c132bba8868421bd2f9dbed46de0.tar.gz
Remove QBuild stuff that was never finished.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qt4projectmanager/qt4nodes.cpp22
-rw-r--r--src/plugins/qt4projectmanager/qt4nodes.h1
2 files changed, 6 insertions, 17 deletions
diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index 6c6947887c..2a2df7cd5e 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -542,8 +542,7 @@ Qt4ProFileNode::Qt4ProFileNode(Qt4Project *project,
QObject *parent)
: Qt4PriFileNode(project, this, filePath),
// own stuff
- m_projectType(InvalidProject),
- m_isQBuildProject(false)
+ m_projectType(InvalidProject)
{
if (parent)
setParent(parent);
@@ -613,12 +612,6 @@ void Qt4ProFileNode::update()
if (debug)
qDebug() << "Qt4ProFileNode - updating files for file " << m_projectFilePath;
-#ifdef QTEXTENDED_QBUILD_SUPPORT
- if (m_projectFilePath.endsWith("qbuild.pro")) {
- m_isQBuildProject = true;
- }
-#endif
-
Qt4ProjectType projectType = InvalidProject;
switch (reader->templateType()) {
case ProFileEvaluator::TT_Unknown:
@@ -950,7 +943,6 @@ QStringList Qt4ProFileNode::subDirsPaths(ProFileReader *reader) const
// subid.file = realdir/realfile.pro"
QString realDir;
- QString realFile;
const QString subDirKey = subDirVar + QLatin1String(".subdir");
const QString subDirFileKey = subDirVar + QLatin1String(".file");
if (reader->contains(subDirKey))
@@ -960,15 +952,13 @@ QStringList Qt4ProFileNode::subDirsPaths(ProFileReader *reader) const
else
realDir = subDirVar;
QFileInfo info(realDir);
- if (!info.isAbsolute())
+ if (!info.isAbsolute()) {
+ info.setFile(m_projectDir + "/" + realDir);
realDir = m_projectDir + "/" + realDir;
+ }
-#ifdef QTEXTENDED_QBUILD_SUPPORT
- // QBuild only uses project files named qbuild.pro, and subdirs are implied
- if (m_isQBuildProject)
- return qBuildSubDirsPaths(realDir);
-#endif
- if (info.suffix().isEmpty() || info.isDir()) {
+ QString realFile;
+ if (info.isDir()) {
realFile = QString("%1/%2.pro").arg(realDir, info.fileName());
if (!QFile::exists(realFile)) {
// parse directory for pro files - if there is only one, use that
diff --git a/src/plugins/qt4projectmanager/qt4nodes.h b/src/plugins/qt4projectmanager/qt4nodes.h
index 63ab84cccf..64c863faa1 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.h
+++ b/src/plugins/qt4projectmanager/qt4nodes.h
@@ -217,7 +217,6 @@ private:
Qt4ProjectType m_projectType;
QHash<Qt4Variable, QStringList> m_varValues;
- bool m_isQBuildProject;
QTimer m_updateTimer;
QMap<QString, QDateTime> m_uitimestamps;