Skip to content

Commit

Permalink
Ping1DVisualizer: Use new WaterfallPlot with opengl
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Dec 16, 2019
1 parent 746c7a9 commit eae677f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions qml/Ping1DVisualizer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,21 @@ Item {
orientation: Qt.Horizontal
anchors.fill: parent

WaterfallPlot {
id: waterfall
ShaderEffect {
id: shader

WaterfallPlot {
id: waterfall
visible: false
anchors.fill: parent
}

property variant src: waterfall
property variant horizontalRatio: waterfall.drawHorizontalRatio
property variant verticalRatio: waterfall.drawVerticalRatio
vertexShader: "qrc:/opengl/waterfallplot/vertex.glsl"
fragmentShader: "qrc:/opengl/waterfallplot/fragment.glsl"

Layout.fillHeight: true
Layout.fillWidth: true
Layout.preferredWidth: 350
Expand Down

0 comments on commit eae677f

Please sign in to comment.