Skip to content

Commit

Permalink
qml/SignalRow: Hide current signal plot when in 'Measure Voltage' mode
Browse files Browse the repository at this point in the history
Signed-off-by: Dan <Dan.Nechita@analog.com>
  • Loading branch information
dNechita committed Jul 14, 2016
1 parent 782f6c3 commit cd7de57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions qml/ChannelRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import QtQuick.Controls 1.0
import QtQuick.Controls.Styles 1.1

Rectangle {
id: channelBlock
property var channel
property alias signalRepeater:signalRepeater
color: '#333'
Expand Down Expand Up @@ -74,6 +75,7 @@ Rectangle {
SignalRow {
Layout.fillHeight: true
Layout.fillWidth: true
Layout.minimumHeight: channelBlock.height / 2

signal: model
xaxis: timeline_xaxis
Expand Down
3 changes: 2 additions & 1 deletion qml/SignalRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ Rectangle {
color: '#444'
property int currentFontSize: 11;

visible: !(signal.label === "Current" && channel.mode === 0)

property color gradColor: Qt.rgba(1,1,1,0.08)
property color gradColor2: Qt.rgba(0,0,0,0.0)


function constrainValue(value, min, max) {
if (value < min)
value = min;
Expand Down

0 comments on commit cd7de57

Please sign in to comment.