~stefan-schwarzburg/qreator/qreator-qml

« back to all changes in this revision

Viewing changes to qreator/QrCodeCanvas.qml

  • Committer: Stefan Schwarzburg
  • Date: 2013-03-17 08:06:14 UTC
  • Revision ID: stefan.schwarzburg@gmail.com-20130317080614-u9n8t4ultwrbpubt
update theme changes automatically

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    id: container
12
12
    height: parent.height
13
13
    width: parent.width
 
14
    
14
15
    property string text
15
16
    onTextChanged: qrcanvas.requestPaint()
16
17
 
27
28
        id: qrcanvas
28
29
        width: container.width
29
30
        height: container.height
30
 
        antialiasing: true            
31
 
        onPaint: Qreator.drawQrCode(container.text)
 
31
        antialiasing: true
 
32
        onPaint: Qreator.drawQrCode(container.text)        
 
33
        Component.onCompleted: {
 
34
            root.updateCanvas.connect(qrcanvas.requestPaint)
 
35
        }
32
36
    }
33
37
}