aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-09-03 19:32:45 +0200
committerdt <qtc-committer@nokia.com>2009-09-03 19:37:15 +0200
commita2b7343c07511edc09fee13a701e21c8fc197fe8 (patch)
treecfc15287267b34244279a70efb44ea53bab5af6f
parent6c630558957d8b2244c6ac84a79c89f0a25b94ae (diff)
Initialiaze everything.
-rw-r--r--src/plugins/qt4projectmanager/qtversionmanager.cpp27
-rw-r--r--src/plugins/qt4projectmanager/qtversionmanager.h5
2 files changed, 28 insertions, 4 deletions
diff --git a/src/plugins/qt4projectmanager/qtversionmanager.cpp b/src/plugins/qt4projectmanager/qtversionmanager.cpp
index 7ff6779766..bc4b10cb83 100644
--- a/src/plugins/qt4projectmanager/qtversionmanager.cpp
+++ b/src/plugins/qt4projectmanager/qtversionmanager.cpp
@@ -388,6 +388,8 @@ QtVersion::QtVersion(const QString &name, const QString &path, int id,
m_isAutodetected(isAutodetected),
m_autodetectionSource(autodetectionSource),
m_hasDebuggingHelper(false),
+ m_mkspecUpToDate(false),
+ m_versionInfoUpToDate(false),
m_notInstalled(false),
m_defaultConfigIsDebug(true),
m_defaultConfigIsDebugAndRelease(true),
@@ -409,12 +411,35 @@ QtVersion::QtVersion(const QString &name, const QString &path,
m_autodetectionSource(autodetectionSource),
m_hasDebuggingHelper(false),
m_mkspecUpToDate(false),
- m_versionInfoUpToDate(false)
+ m_versionInfoUpToDate(false),
+ m_notInstalled(false),
+ m_defaultConfigIsDebug(true),
+ m_defaultConfigIsDebugAndRelease(true),
+ m_hasExamples(false),
+ m_hasDemos(false),
+ m_hasDocumentation(false)
{
m_id = getUniqueId();
setPath(path);
}
+QtVersion::QtVersion()
+ : m_name(QString::null),
+ m_id(-1),
+ m_isAutodetected(false),
+ m_hasDebuggingHelper(false),
+ m_mkspecUpToDate(false),
+ m_versionInfoUpToDate(false),
+ m_notInstalled(false),
+ m_defaultConfigIsDebug(true),
+ m_defaultConfigIsDebugAndRelease(true),
+ m_hasExamples(false),
+ m_hasDemos(false),
+ m_hasDocumentation(false)
+{
+ setPath(QString::null);
+}
+
QtVersion::~QtVersion()
{
diff --git a/src/plugins/qt4projectmanager/qtversionmanager.h b/src/plugins/qt4projectmanager/qtversionmanager.h
index 0dcc1fcb61..65666226e0 100644
--- a/src/plugins/qt4projectmanager/qtversionmanager.h
+++ b/src/plugins/qt4projectmanager/qtversionmanager.h
@@ -52,9 +52,8 @@ public:
bool isAutodetected = false, const QString &autodetectionSource = QString());
QtVersion(const QString &name, const QString &path, int id,
bool isAutodetected = false, const QString &autodetectionSource = QString());
- QtVersion()
- :m_name(QString::null), m_id(-1)
- { setPath(QString::null); }
+ QtVersion();
+
~QtVersion();
bool isValid() const; //TOOD check that the dir exists and the name is non empty