/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/ import QtQuick 2.3 import QtQml.Models 2.1 import QGroundControl.Controls 1.0 import QGroundControl.ScreenTools 1.0 /// A PreFlightCheckGroup manages a set of PreFlightCheckButtons as a single entity. Column { property string name property bool passed: false spacing: ScreenTools.defaultFontPixelHeight / 2 property alias _checked: header.checked onPassedChanged: { parent.groupPassedChanged(ObjectModel.index) if (passed) { header.checked = false } } Component.onCompleted: { enabled = _checked var moveList = [] for (var i=2; i