Skip to content

Commit b44917c

Browse files
committed
Fix Stream filter layout
1 parent 7e9563f commit b44917c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/qml/value-editor/filters/StreamFilters.qml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ RowLayout {
6868
id: streamRangeSlider
6969
objectName: "rdm_stream_filter_range_slider"
7070

71+
implicitWidth: 100
72+
7173
Layout.fillWidth: true
7274
palette.midlight: sysPalette.button
7375
palette.dark: enabled ? sysPalette.highlight : disabledSysPalette.highlight
@@ -78,11 +80,11 @@ RowLayout {
7880
stepSize: 1.0
7981
snapMode: Slider.SnapAlways
8082

81-
first.handle.implicitWidth: 20
82-
first.handle.implicitHeight: 20
83+
first.handle.implicitWidth: PlatformUtils.isOSXRetina(Screen) ? 15 : 20
84+
first.handle.implicitHeight: PlatformUtils.isOSXRetina(Screen) ? 15 : 20
8385

84-
second.handle.implicitWidth: 20
85-
second.handle.implicitHeight: 20
86+
second.handle.implicitWidth: PlatformUtils.isOSXRetina(Screen) ? 15 : 20
87+
second.handle.implicitHeight: PlatformUtils.isOSXRetina(Screen) ? 15 : 20
8688

8789
first.onPressedChanged: {
8890
if (!first.pressed) {
@@ -129,9 +131,9 @@ RowLayout {
129131

130132
BetterButton {
131133
objectName: "rdm_stream_filter_apply_btn"
132-
134+
implicitWidth: 30
133135
iconSource: "qrc:/images/filter.svg"
134-
text: qsTranslate("RDM","Apply filter")
136+
tooltip: qsTranslate("RDM","Apply filter")
135137
enabled: (streamRangeStartField.isEdited || streamRangeEndField.isEdited) && streamFilter.enabled
136138

137139
onClicked: {

0 commit comments

Comments
 (0)