1/* 2 Bacula(R) - The Network Backup Solution 3 4 Copyright (C) 2000-2020 Kern Sibbald 5 6 The original author of Bacula is Kern Sibbald, with contributions 7 from many others, a complete list can be found in the file AUTHORS. 8 9 You may use this file and others of this release according to the 10 license defined in the LICENSE file, which includes the Affero General 11 Public License, v3.0 ("AGPLv3") and some additional permissions and 12 terms pursuant to its AGPLv3 Section 7. 13 14 This notice must be preserved when any source code is 15 conveyed and/or propagated. 16 17 Bacula(R) is a registered trademark of Kern Sibbald. 18*/ 19 20import QtQuick 2.10 21import QtQuick.Window 2.10 22import QtQuick.Layouts 1.3 23import QtQuick.Controls 2.3 24import QtQuick.Controls.Material 2.1 25import QtQuick.Dialogs 1.2 26 27Item { 28 id: listItem 29 width: parent.width 30 height: childrenRect.height 31 32 property alias jobId: jobId.text 33 property alias name: name.text 34 property alias level: level.text 35 property alias finfo: finfo.text 36 property alias errorCount: errors.text 37 property alias clickArea: clickArea 38 39 Rectangle { 40 anchors.left: parent.left 41 anchors.right: parent.right 42 anchors.top: parent.top 43 anchors.bottom: divider.bottom 44 color: "#e0e0e0" 45 visible: clickArea.pressed 46 } 47 48 Text { 49 id: idLabel 50 text: "<b>Id:</b>" 51 anchors.top: parent.top 52 anchors.topMargin: 16 53 anchors.left: parent.left 54 anchors.leftMargin: 16 55 } 56 57 Text { 58 id: jobId 59 anchors.top: parent.top 60 anchors.topMargin: 16 61 anchors.left: idLabel.right 62 anchors.leftMargin: 8 63 } 64 65 Text { 66 id: errors 67 color: "#d32f2f" 68 anchors.top: parent.top 69 anchors.topMargin: 16 70 anchors.right: parent.right 71 anchors.rightMargin: 12 72 } 73 74 Text { 75 id: nameLabel 76 text: "<b>Name:</b>" 77 anchors.top: idLabel.bottom 78 anchors.left: parent.left 79 anchors.leftMargin: 16 80 anchors.topMargin: 8 81 } 82 83 Text { 84 id: name 85 elide: Text.ElideRight 86 anchors.top: idLabel.bottom 87 anchors.topMargin: 8 88 anchors.right: parent.right 89 anchors.rightMargin: 12 90 anchors.left: nameLabel.right 91 anchors.leftMargin: 8 92 } 93 94 Text { 95 id: levelLabel 96 text: "<b>Level:</b>" 97 anchors.top: nameLabel.bottom 98 anchors.left: parent.left 99 anchors.leftMargin: 16 100 anchors.topMargin: 8 101 } 102 103 Text { 104 id: level 105 anchors.top: nameLabel.bottom 106 anchors.left: levelLabel.right 107 anchors.leftMargin: 8 108 anchors.topMargin: 8 109 } 110 111 Text { 112 id: finfo 113 anchors.top: nameLabel.bottom 114 anchors.topMargin: 8 115 anchors.right: parent.right 116 anchors.rightMargin: 12 117 anchors.leftMargin: 8 118 } 119 120 MouseArea { 121 id: clickArea 122 anchors.left: parent.left 123 anchors.right: parent.right 124 anchors.top: parent.top 125 anchors.bottom: divider.bottom 126 } 127 128 Rectangle { 129 id: divider 130 anchors.left: parent.left 131 anchors.right: parent.right 132 anchors.top: levelLabel.bottom 133 anchors.topMargin: 16 134 height: 1 135 color: "#e0e0e0" 136 } 137 138} 139