Commit ba78b73f authored by Thomas Hartmann's avatar Thomas Hartmann

Welcomepage: fix combobox for Qt 4

Somehow AbstractItemModel is not registered in Qt 4.
So we cannot use the qtVersionModel as a property.

Change-Id: Iac822998cb660d317e2b750dde9f3207c66f5feb
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 36c680a3
......@@ -82,11 +82,9 @@ Rectangle {
anchors.rightMargin: 80
anchors.right: parent.right
anchors.leftMargin: 20
model: examplesModel.qtVersionModel
model: qtVersionModel
onCurrentIndexChanged: {
print("currentIndex" + currentIndex);
if (comboBox.model === undefined)
return;
......
......@@ -301,6 +301,7 @@ void ExamplesWelcomePage::facilitateQml(QDeclarativeEngine *engine)
if (m_showExamples) {
proxy->setShowTutorialsOnly(false);
rootContenxt->setContextProperty(QLatin1String("examplesModel"), proxy);
rootContenxt->setContextProperty(QLatin1String("qtVersionModel"), proxy->qtVersionModel());
} else {
rootContenxt->setContextProperty(QLatin1String("tutorialsModel"), proxy);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment