Integrated file selection dialogue with the main code. Improved the
[openvpnui.git] / qml / filebrowse / components / CenteredField.qml
1 import QtQuick 2.0
2 import Sailfish.Silica 1.0
3
4 // This component displays a label and a value as a row
5 Row {
6     spacing: 10
7     width: parent.width
8
9     // label text
10     property string label: ""
11
12     // value text
13     property string value: ""
14
15     // font size
16     property int pixelSize: Theme.fontSizeExtraSmall
17
18     Label {
19         text: label
20         color: Theme.secondaryColor
21         width: parent.width/2
22         horizontalAlignment: Text.AlignRight
23         wrapMode: Text.Wrap
24         font.pixelSize: pixelSize
25     }
26     Label {
27         text: value
28         color: Theme.highlightColor
29         width: parent.width/2
30         wrapMode: Text.Wrap
31         font.pixelSize: pixelSize
32     }
33 }