File tree 10 files changed +21
-4
lines changed
QMLComponents/components/JASP/Controls
10 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ JASPControl
34
34
readonly property alias control: control
35
35
property alias text: control .text
36
36
property alias label: control .text
37
+ property alias textFormat: control .textFormat
37
38
property alias iconSource: control .iconSource
38
39
readonly property alias pressed: control ._pressed
39
40
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ CheckBoxBase
42
42
property alias font: label .font
43
43
property alias fontInfo: label .fontInfo
44
44
property alias label: control .text
45
- property alias labelTextFormat: label .textFormat
46
45
property alias checked: control .checked
46
+ property int textFormat: Text .AutoText
47
47
property bool childrenOnSameRow: false
48
48
property alias columns: childControlsArea .columns
49
49
property bool enableChildrenOnChecked: true
@@ -111,6 +111,7 @@ CheckBoxBase
111
111
font: jaspTheme .font
112
112
leftPadding: checkIndicator .width + control .spacing
113
113
verticalAlignment: Text .AlignVCenter
114
+ textFormat: checkBox .textFormat
114
115
}
115
116
116
117
background: Rectangle
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ ComboBoxBase
20
20
property alias value: comboBox .currentValue
21
21
property alias indexDefaultValue: comboBox .currentIndex
22
22
property alias fieldWidth: control .width
23
+ property int textFormat: Text .AutoText
23
24
property bool showVariableTypeIcon: containsVariables
24
25
property var enabledOptions: []
25
26
property bool setLabelAbove: false
@@ -87,6 +88,7 @@ ComboBoxBase
87
88
anchors .verticalCenter : parent .verticalCenter
88
89
color: enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
89
90
width: implicitWidth
91
+ textFormat: comboBox .textFormat
90
92
}
91
93
}
92
94
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ FocusScope
46
46
readonly property string iconsFolder : jaspTheme .iconPath
47
47
readonly property string expanderButtonIcon : " expander-arrow-up.png"
48
48
property alias columns : expanderArea .columns
49
+ property int textFormat : Text .AutoText
49
50
50
51
states: [
51
52
State
@@ -131,6 +132,7 @@ FocusScope
131
132
anchors .verticalCenter : parent .verticalCenter
132
133
font : jaspTheme .font
133
134
color : enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
135
+ textFormat : expanderWrapper .textFormat
134
136
}
135
137
}
136
138
}
Original file line number Diff line number Diff line change @@ -39,9 +39,10 @@ GroupBoxBase
39
39
property int columnSpacing: jaspTheme .columnGroupSpacing
40
40
property int columns: 1
41
41
property bool indent: false
42
- property bool alignFields: true
42
+ property bool alignFields: true
43
43
property alias label: label
44
44
property alias preferredWidth: contentArea .width
45
+ property int textFormat: Text .AutoText
45
46
46
47
property var _allAlignableFields: []
47
48
property bool _childrenConnected: false
@@ -55,6 +56,7 @@ GroupBoxBase
55
56
color: enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
56
57
font: jaspTheme .font
57
58
visible: groupBox .title ? true : false
59
+ textFormat: groupBox .textFormat
58
60
59
61
property int realHeight: visible ? implicitHeight : 0
60
62
property int realWidth: visible ? implicitWidth : 0
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ RadioButtonBase
43
43
property alias label: control .text
44
44
property alias checked: control .checked
45
45
property alias value: radioButton .name
46
+ property int textFormat: Text .AutoText
46
47
property bool childrenOnSameRow: false
47
48
property alias columns: childControlsArea .columns
48
49
property bool enableChildrenOnChecked: true
@@ -102,6 +103,7 @@ RadioButtonBase
102
103
leftPadding: radioIndicator .width + control .spacing
103
104
font: jaspTheme .font
104
105
color: enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
106
+ textFormat: radioButton .textFormat
105
107
}
106
108
107
109
background: Rectangle { color: " transparent" }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ RadioButtonsGroupBase
35
35
property alias columns: contentArea .columns
36
36
property alias text: control .title
37
37
property int leftPadding: jaspTheme .groupContentPadding
38
+ property int textFormat: Text .AutoText
38
39
39
40
implicitWidth: radioButtonsOnSameRow
40
41
? contentArea .x + contentArea .implicitWidth
@@ -57,6 +58,7 @@ RadioButtonsGroupBase
57
58
verticalAlignment: Text .AlignVCenter
58
59
font: jaspTheme .font
59
60
color: enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
61
+ textFormat: control .textFormat
60
62
}
61
63
62
64
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ Rectangle
24
24
{
25
25
id: filterButtonRoot
26
26
27
-
28
-
27
+ property alias textFormat: buttonText .textFormat
29
28
property string text: " "
30
29
property string toolTip: " "
31
30
property string textColor: " default"
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ TextInputBase
34
34
property alias control: control
35
35
property alias text: textField .label
36
36
property alias displayValue: control .text // /< In onEditingFinished this contains the "value" entered by the user
37
+ property int textFormat: Text .AutoText
37
38
property var lastValidValue: defaultValue
38
39
property int fieldWidth: jaspTheme .textFieldWidth
39
40
property int fieldHeight: 0
@@ -151,6 +152,7 @@ TextInputBase
151
152
color: enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
152
153
text: textField .label
153
154
width: implicitWidth
155
+ textFormat: textField .textFormat
154
156
}
155
157
}
156
158
@@ -279,6 +281,7 @@ TextInputBase
279
281
anchors .verticalCenter : parent .verticalCenter
280
282
color: enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
281
283
text: textField .afterLabel
284
+ textFormat: textField .textFormat
282
285
}
283
286
}
284
287
}
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ VariablesListBase
43
43
property alias itemRectangle : itemRectangle
44
44
property alias scrollBar : scrollBar
45
45
property alias itemTitle : itemTitle
46
+ property int textFormat : Text .AutoText
46
47
property string rowComponentTitle : " "
47
48
property string itemType : " variables"
48
49
property int dropMode : JASP .DropNone
@@ -146,6 +147,7 @@ VariablesListBase
146
147
height : title ? jaspTheme .variablesListTitle : 0
147
148
font : jaspTheme .font
148
149
color : enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
150
+ textFormat : variablesList .textFormat
149
151
}
150
152
151
153
Text
@@ -156,6 +158,7 @@ VariablesListBase
156
158
height : rowComponentTitle ? jaspTheme .variablesListTitle : 0
157
159
font : jaspTheme .font
158
160
color : enabled ? jaspTheme .textEnabled : jaspTheme .textDisabled
161
+ textFormat : variablesList .textFormat
159
162
}
160
163
161
164
Rectangle
You can’t perform that action at this time.
0 commit comments