Integrated file selection dialogue with the main code. Improved the
[openvpnui.git] / qml / filebrowse / components / DoubleMenuItem.qml
diff --git a/qml/filebrowse/components/DoubleMenuItem.qml b/qml/filebrowse/components/DoubleMenuItem.qml
new file mode 100644 (file)
index 0000000..9507baf
--- /dev/null
@@ -0,0 +1,16 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+// This component creates a menu item with two lines
+MenuItem {
+    property string subtext: ""
+
+    Label {
+        visible: subtext !== ""
+        anchors.horizontalCenter: parent.horizontalCenter
+        anchors.bottom: parent.bottom
+        text: subtext
+        color: Theme.secondaryColor
+        font.pixelSize: Theme.fontSizeExtraSmall
+    }
+}