QmlProject: Add mainFile property

The mainFile property of QmlProject is the default file to run. People
have still the opportunity to override this in their run settings,
though.

The wizard generated code was updated accordingly. Note that this makes
projects generated by the wizard incompatible with QtCreator 2.1!

Task-number: QTCREATORBUG-3249
This commit is contained in:
Kai Koehne
2010-12-03 17:04:29 +01:00
parent efcac96f57
commit c4e4913870
11 changed files with 189 additions and 46 deletions

View File

@@ -33,7 +33,7 @@
#include <QWidget>
QT_FORWARD_DECLARE_CLASS(QComboBox);
QT_FORWARD_DECLARE_CLASS(QStringListModel);
QT_FORWARD_DECLARE_CLASS(QStandardItemModel);
namespace ProjectExplorer {
@@ -58,11 +58,11 @@ public:
public slots:
void updateQtVersionComboBox();
void userEnvironmentChangesChanged();
private slots:
void updateFileComboBox();
void setMainScript(const QString &file);
private slots:
void setMainScript(int index);
void onQtVersionSelectionChanged();
void onViewerArgsChanged();
void useCppDebuggerToggled(bool toggled);
@@ -78,7 +78,7 @@ private:
QComboBox *m_qtVersionComboBox;
QComboBox *m_fileListCombo;
QStringListModel *m_fileListModel;
QStandardItemModel *m_fileListModel;
ProjectExplorer::EnvironmentWidget *m_environmentWidget;
};