X-Git-Url: https://www.flypig.org.uk/git/?p=openvpnui.git;a=blobdiff_plain;f=qml%2Ffilebrowse%2Fcomponents%2FDoubleMenuItem.qml;fp=qml%2Ffilebrowse%2Fcomponents%2FDoubleMenuItem.qml;h=9507bafe0977c3e72cd930ebb33ed3b933d6658a;hp=0000000000000000000000000000000000000000;hb=e24363e314aca32e7bee952f02f517a04a8dc5f2;hpb=ee3968ffa08d4e0fcbad87765efa3aeb32ff0554 diff --git a/qml/filebrowse/components/DoubleMenuItem.qml b/qml/filebrowse/components/DoubleMenuItem.qml new file mode 100644 index 0000000..9507baf --- /dev/null +++ b/qml/filebrowse/components/DoubleMenuItem.qml @@ -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 + } +}