summaryrefslogtreecommitdiff
path: root/gui/components/WrappedRadioButton.qml
blob: 04643b126b2e2920b5e05eae0406fcceb16d67ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.12
import QtQuick.Controls.Material.impl 2.12

import "../themes/themes.js" as Theme

RadioButton {
   id: control
   width: parent.width
   property var location

   contentItem: Label {
       text: control.text
       font: control.font
       horizontalAlignment: Text.AlignLeft
       verticalAlignment: Text.AlignVCenter
       leftPadding: control.indicator.width + control.spacing
       wrapMode: Label.Wrap
   }
}