Skip to content

Commit

Permalink
Fix Stream filter layout
Browse files Browse the repository at this point in the history
  • Loading branch information
uglide committed Nov 30, 2021
1 parent 7e9563f commit b44917c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/qml/value-editor/filters/StreamFilters.qml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ RowLayout {
id: streamRangeSlider
objectName: "rdm_stream_filter_range_slider"

implicitWidth: 100

Layout.fillWidth: true
palette.midlight: sysPalette.button
palette.dark: enabled ? sysPalette.highlight : disabledSysPalette.highlight
Expand All @@ -78,11 +80,11 @@ RowLayout {
stepSize: 1.0
snapMode: Slider.SnapAlways

first.handle.implicitWidth: 20
first.handle.implicitHeight: 20
first.handle.implicitWidth: PlatformUtils.isOSXRetina(Screen) ? 15 : 20
first.handle.implicitHeight: PlatformUtils.isOSXRetina(Screen) ? 15 : 20

second.handle.implicitWidth: 20
second.handle.implicitHeight: 20
second.handle.implicitWidth: PlatformUtils.isOSXRetina(Screen) ? 15 : 20
second.handle.implicitHeight: PlatformUtils.isOSXRetina(Screen) ? 15 : 20

first.onPressedChanged: {
if (!first.pressed) {
Expand Down Expand Up @@ -129,9 +131,9 @@ RowLayout {

BetterButton {
objectName: "rdm_stream_filter_apply_btn"

implicitWidth: 30
iconSource: "qrc:/images/filter.svg"
text: qsTranslate("RDM","Apply filter")
tooltip: qsTranslate("RDM","Apply filter")
enabled: (streamRangeStartField.isEdited || streamRangeEndField.isEdited) && streamFilter.enabled

onClicked: {
Expand Down

0 comments on commit b44917c

Please sign in to comment.