Skip to content

Commit

Permalink
Switch canvas alpha example to Qt Quick controls 2
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jan 1, 2021
1 parent 7bede84 commit 0f03c09
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions example/qml/canvas_alpha.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.0
import org.julialang 1.0

Expand All @@ -26,12 +26,11 @@ ApplicationWindow {
id: diameter
width: 100
value: 50
minimumValue: 5.0
maximumValue: circle_canvas.width
from: 5.0
to: circle_canvas.width
onValueChanged: {
parameters.diameter = value;
circle_canvas.update();
square_canvas.update();
}
}

Expand All @@ -43,8 +42,8 @@ ApplicationWindow {
id: alpha
width: 100
value: 0.5
minimumValue: 0.0
maximumValue: 1.0
from: 0.0
to: 1.0
onValueChanged: {
parameters.alpha = value;
square_canvas.update();
Expand Down

0 comments on commit 0f03c09

Please sign in to comment.