2
* Copyright: 2013 Canonical, Ltd
4
* This file is part of reminders
6
* reminders is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* reminders is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
import QtQuick.Layouts 1.0
21
import Ubuntu.Components 1.1
22
import Ubuntu.Components.ListItems 1.0
32
anchors.bottomMargin: units.dp(1)
39
onClicked: root.clicked()
42
anchors { fill: parent; topMargin: units.gu(1); bottomMargin: units.gu(1) }
45
anchors { top: parent.top; bottom: parent.bottom }
48
anchors { top: parent.top; bottom: parent.bottom; horizontalCenter: parent.horizontalCenter; margins: units.gu(1.5) }
57
Layout.fillWidth: true
61
objectName: 'tagTitleLabel'
67
tagTitleLabel.visible = false;
68
tagTitleTextField.forceActiveFocus();
71
propagateComposedEvents: true
78
visible: !tagTitleLabel.visible
82
if (tagTitleTextField.text) {
83
tags.tag(index).name = tagTitleTextField.text;
84
NotesStore.saveTag(tags.tag(index).guid);
85
tagTitleLabel.visible = true;
94
objectName: 'tagNoteCountLabel'
95
Layout.fillHeight: true
96
verticalAlignment: Text.AlignVCenter
97
text: "(" + model.noteCount + ")"