Warning, /pim/kube/views/people/qml/PhoneListEditor.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright (C) 2018 Michael Bohlender, <michael.bohlender@kdemail.net> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU General Public License as published by 0006 * the Free Software Foundation; either version 2 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License along 0015 * with this program; if not, write to the Free Software Foundation, Inc., 0016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 0020 import QtQuick 2.7 0021 import QtQuick.Layouts 1.1 0022 0023 import org.kube.framework 1.0 as Kube 0024 0025 Column { 0026 id: root 0027 0028 property variant controller 0029 0030 spacing: Kube.Units.smallSpacing 0031 0032 ListView { 0033 id: emails 0034 0035 width: personComposerRoot.width - Kube.Units.largeSpacing 0036 height: contentHeight 0037 0038 model: controller.model 0039 0040 delegate: Row { 0041 height: textField.height + Kube.Units.smallSpacing 0042 spacing: Kube.Units.smallSpacing 0043 Kube.Label { text: qsTr("(main)") } 0044 Kube.TextField {id: textField; width: Kube.Units.gridUnit * 15; text: model.number; backgroundColor: "white" } 0045 Kube.IconButton { 0046 id: removeButton 0047 iconName: Kube.Icons.listRemove 0048 onClicked: root.controller.remove(model.id) 0049 } 0050 } 0051 } 0052 0053 Kube.Button { 0054 id: button 0055 text: qsTr("Add") 0056 focus: true 0057 onClicked: { 0058 root.controller.add({number: ""}); 0059 } 0060 } 0061 }