Skip to content

Commit 5ecf4bd

Browse files
authored
Exposed internal items of FileFolderSelector (#2)
1 parent c1fa8ee commit 5ecf4bd

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

common_qml/qml/CommonQml/Items/FileFolderSelector.qml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ RowLayout {
1717
property alias value: valueTextEdit.text
1818
property int type: FileFolderSelector.Type.File
1919

20+
property alias headlineTextItem: headlineText
21+
property alias valueTextEditItem: valueTextEdit
22+
property alias buttonItem: button
23+
2024
property int fontPointSize: 12
2125

2226
Text {
2327
id: headlineText
2428

2529
color: "white"
2630
font.pointSize: parent.fontPointSize
27-
2831
}
2932

3033
Rectangle {
@@ -53,7 +56,7 @@ RowLayout {
5356
}
5457

5558
Button {
56-
id: fileButton
59+
id: button
5760

5861
Layout.fillHeight: true
5962

examples/python/frontend/qml/views/FileOpenerView.qml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ SidebarAppView {
3030
Layout.fillWidth: true
3131
Layout.fillHeight: false
3232

33+
headlineTextItem.Layout.preferredWidth: 120
34+
headlineTextItem.horizontalAlignment: Text.AlignRight
35+
3336
}
3437

3538
FileFolderSelector {
@@ -41,6 +44,9 @@ SidebarAppView {
4144
Layout.fillWidth: true
4245
Layout.fillHeight: false
4346

47+
headlineTextItem.Layout.preferredWidth: 120
48+
headlineTextItem.horizontalAlignment: Text.AlignRight
49+
4450
}
4551

4652
Item {

0 commit comments

Comments
 (0)