forked from qt-creator/qt-creator
Qt Version refactoring
Split up target specific code into subclasses. Also change Qt4BuildConfiguration to allow a null qtversion. Remove code that relied on always having a qt version. Also make it possible to remove all qt versions. Completly change the qt in path autodetection to be only a fall back if no configuration was found. Note: For now the old settings are not removed, as such 2.2 and master can coexist. Reviewed-By: hunger
This commit is contained in:
@@ -51,7 +51,7 @@ namespace Utils {
|
||||
}
|
||||
|
||||
namespace Qt4ProjectManager {
|
||||
class QtVersion;
|
||||
class BaseQtVersion;
|
||||
}
|
||||
|
||||
namespace QmlProjectManager {
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
QString viewerArguments() const;
|
||||
QString workingDirectory() const;
|
||||
int qtVersionId() const;
|
||||
Qt4ProjectManager::QtVersion *qtVersion() const;
|
||||
Qt4ProjectManager::BaseQtVersion *qtVersion() const;
|
||||
|
||||
enum MainScriptSource {
|
||||
FileInEditor,
|
||||
@@ -119,7 +119,7 @@ protected:
|
||||
|
||||
private:
|
||||
void ctor();
|
||||
static bool isValidVersion(Qt4ProjectManager::QtVersion *version);
|
||||
static bool isValidVersion(Qt4ProjectManager::BaseQtVersion *version);
|
||||
void setQtVersionId(int id);
|
||||
|
||||
static QString canonicalCapsPath(const QString &filePath);
|
||||
|
||||
Reference in New Issue
Block a user