Commit 89e284cb authored by Daniel Molkentin's avatar Daniel Molkentin

SDK Integration for Example Manifests

Change-Id: I3cdf8e299267b0cb2c21322bb9cd147f43dfb851
Reviewed-on: http://codereview.qt.nokia.com/2573Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent b908a0f7
......@@ -250,7 +250,14 @@ QStringList ExamplesListModel::exampleSources() const
QFileInfoList sources;
const QStringList pattern(QLatin1String("*.xml"));
// TODO: Read key from settings
// Read keys from SDK installer
QSettings *settings = Core::ICore::instance()->settings(QSettings::SystemScope);
int size = settings->beginReadArray("ExampleManifests");
for (int i = 0; i < size; ++i) {
settings->setArrayIndex(i);
sources.append(settings->value("Location").toString());
}
settings->endArray();
if (sources.isEmpty()) {
// Try to get dir from first Qt Version
......
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