From eb08a4eee1d2cac9b0c3f585ef14c14430bd7a16 Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Fri, 10 Jan 2014 06:38:38 +0100 Subject: [PATCH] Changed favourite switch to icon --- qml/pages/MainView.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index 1bdbf75..83b8fe3 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -142,18 +142,18 @@ Page { width: parent.width anchors.horizontalCenter: parent.horizontalCenter - Switch { - checked: model.fav + IconButton { + icon.source: fav == 1 ? "image://theme/icon-m-favorite-selected" : "image://theme/icon-m-favorite" anchors.left: parent.left onClicked: { - if (checked) DB.setFav(title, secret) - refreshOTPList(); - /*model.fav = checked ? 1 : 0; + DB.setFav(title, secret) for (var i=0; i