From 327dab50c887d2818cac9109049bf5fc1f391a17 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 27 Sep 2014 18:15:22 +0200 Subject: enable all the builtin watchfaces --- qml/pages/AddWidget.qml | 5 ++++- qml/pages/MainPage.qml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'qml/pages') 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" } } } -- cgit v1.2.3