diff options
Diffstat (limited to 'src/availablewidgetsmodel.cpp')
-rw-r--r-- | src/availablewidgetsmodel.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/availablewidgetsmodel.cpp b/src/availablewidgetsmodel.cpp index 02ca746..b95e79a 100644 --- a/src/availablewidgetsmodel.cpp +++ b/src/availablewidgetsmodel.cpp @@ -13,6 +13,7 @@ QHash<int, QByteArray> AvailableWidgetsModel::roleNames() const QHash<int, QByteArray> roles; roles[UrlRole] = "url"; + roles[DescriptionRole] = "description"; roles[SizeRole] = "size"; return roles; @@ -51,14 +52,16 @@ void AvailableWidgetsModel::reload() // Load builtin widgets WidgetInfo info; - info.setUrl(SailfishApp::pathTo("qml/watch/faces/builtinface4.qml")); - info.setDescription("Watchface #4"); + info.setUrl(SailfishApp::pathTo("qml/watch/faces/builtinface3.qml")); + info.setDescription("Builtin watchface #3"); info.setSize(WidgetInfo::Size4Q); + Q_ASSERT(info.builtinClockfaceId() == 3); // Autodetected from passed URL _widgets.append(info); info.setUrl(SailfishApp::pathTo("qml/watch/faces/builtinface4.qml")); - info.setDescription("Watchface #4"); + info.setDescription("Builtin watchface #4"); info.setSize(WidgetInfo::Size4Q); + Q_ASSERT(info.builtinClockfaceId() == 4); _widgets.append(info); endResetModel(); |