~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-private-shapes

« back to all changes in this revision

Viewing changes to tests/resources/ubuntushape/FrameTest.qml

  • Committer: Loïc Molinari
  • Date: 2016-01-12 22:16:02 UTC
  • Revision ID: loic.molinari@canonical.com-20160112221602-m8ghic22otrksv4v
Renamed weight property to thickness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    focus: true
26
26
 
27
27
    property string textOverlayString:
28
 
        "weight   (w/W): " + frame.weight.toFixed(1) + "\n" +
29
 
        "radius   (r/R): " + frame.radius.toFixed(1) + "\n" +
30
 
        "color      (c): " + frame.color + "\n" +
31
 
        "opacity  (o/O): " + frame.opacity.toFixed(2) + "\n"
 
28
        "thickness (t/T): " + frame.thickness.toFixed(1) + "\n" +
 
29
        "radius    (r/R): " + frame.radius.toFixed(1) + "\n" +
 
30
        "color       (c): " + frame.color + "\n" +
 
31
        "opacity   (o/O): " + frame.opacity.toFixed(2) + "\n"
32
32
 
33
33
    Item {
34
34
        id: scene
58
58
 
59
59
    Keys.onPressed: {
60
60
        var shift = event.modifiers & Qt.ShiftModifier;
61
 
        if (event.key == Qt.Key_W) {
62
 
            frame.weight = frame.weight + (shift ? 1.0 : -1.0);
 
61
        if (event.key == Qt.Key_T) {
 
62
            frame.thickness = frame.thickness + (shift ? 1.0 : -1.0);
63
63
        } else if (event.key == Qt.Key_R) {
64
64
            frame.radius = frame.radius + (shift ? 1.0 : -1.0);
65
65
        } else if (event.key == Qt.Key_C) {