| 1 |
/* |
| 2 |
* Copyright (C) 2017 Stefano Verzegnassi |
| 3 |
* |
| 4 |
* This program is free software: you can redistribute it and/or modify |
| 5 |
* it under the terms of the GNU General Public License 3 as published by |
| 6 |
* the Free Software Foundation, either version 3 of the License, or |
| 7 |
* (at your option) any later version. |
| 8 |
* |
| 9 |
* This program is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
* GNU General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU General Public License |
| 15 |
* along with this program. If not, see http://www.gnu.org/licenses/. |
| 16 |
*/ |
| 17 |
|
| 18 |
import QtQuick 2.4 |
| 19 |
import Lomiri.Components 1.3 |
| 20 |
import QtQuick.Layouts 1.1 |
| 21 |
|
| 22 |
Item { |
| 23 |
property alias text: label.text |
| 24 |
|
| 25 |
anchors { left: parent.left; right: parent.right } |
| 26 |
height: units.gu(4) |
| 27 |
|
| 28 |
RowLayout { |
| 29 |
anchors { |
| 30 |
left: parent.left; |
| 31 |
right: parent.right |
| 32 |
verticalCenter: parent.bottom |
| 33 |
} |
| 34 |
|
| 35 |
spacing: units.gu(2) |
| 36 |
|
| 37 |
Rectangle { |
| 38 |
height: units.dp(1) |
| 39 |
color: theme.palette.normal.base |
| 40 |
Layout.preferredWidth: units.gu(7) |
| 41 |
Layout.alignment: Qt.AlignVCenter |
| 42 |
} |
| 43 |
|
| 44 |
Label { |
| 45 |
id: label |
| 46 |
Layout.alignment: Qt.AlignVCenter |
| 47 |
textSize: Label.Small |
| 48 |
color: theme.palette.normal.backgroundSecondaryText |
| 49 |
} |
| 50 |
|
| 51 |
Rectangle { |
| 52 |
height: units.dp(1) |
| 53 |
color: theme.palette.normal.base |
| 54 |
Layout.fillWidth: true |
| 55 |
Layout.alignment: Qt.AlignVCenter |
| 56 |
} |
| 57 |
} |
| 58 |
} |