QGCCanvas.qml 479 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2

import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0

/// Canvas has some sort of bug in it which can cause it to not paint when top level Views
/// are switched. In order to fix this we ahve a signal hacked into ScreenTools to force
/// a repaint.
Canvas {
Don Gagne's avatar
Don Gagne committed
12 13
    id: _root

14 15 16
    Connections {
        target: ScreenTools

Don Gagne's avatar
Don Gagne committed
17
        onRepaintRequested: _root.requestPaint()
18 19
    }
}