diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 18:15:22 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 18:15:22 +0200 |
commit | 327dab50c887d2818cac9109049bf5fc1f391a17 (patch) | |
tree | 9f9b19d665369b291c70056c430f74b02a4d86e9 /qml/pages | |
parent | 1cdacce135cad31c2a8d75b95f742c47038211ee (diff) | |
download | salmeta-327dab50c887d2818cac9109049bf5fc1f391a17.tar.gz salmeta-327dab50c887d2818cac9109049bf5fc1f391a17.zip |
enable all the builtin watchfaces
Diffstat (limited to 'qml/pages')
-rw-r--r-- | qml/pages/AddWidget.qml | 5 | ||||
-rw-r--r-- | qml/pages/MainPage.qml | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/qml/pages/AddWidget.qml b/qml/pages/AddWidget.qml index 5c3086e..c854c7c 100644 --- a/qml/pages/AddWidget.qml +++ b/qml/pages/AddWidget.qml @@ -19,13 +19,14 @@ Page { } delegate : BackgroundItem { + id: widgetDelegate contentHeight: Theme.itemSizeSmall Label { anchors.left: parent.left anchors.margins: Theme.paddingLarge anchors.verticalCenter: parent.verticalCenter - text: model.description + text: model.description + (!widgetDelegate.enabled ? qsTr(" (does not fit)") : "") truncationMode: TruncationMode.Elide color: highlighted ? Theme.highlightColor : Theme.primaryColor } @@ -34,6 +35,8 @@ Page { curWidgets.addWidget(model.url, addToPage, addToPos, model.size); pageStack.pop(); } + + enabled: !curWidgets.widgetOverlaps(addToPage, addToPos, model.size); } } } diff --git a/qml/pages/MainPage.qml b/qml/pages/MainPage.qml index b25ff06..20d602f 100644 --- a/qml/pages/MainPage.qml +++ b/qml/pages/MainPage.qml @@ -227,7 +227,7 @@ Page { Label { x: Theme.paddingLarge - text: "TODO" + text: "TODO: List of notification types" } } } |