Пример #1
0
/**
 * @brief cwCaptureItem::setBoundingBox
 * @param boundingbox
 *
 * This sets the new bounding box for the capture item. This bounding box is
 * the local coordinate system in paper units.
 *
 * This is useful for displaying annotation, and interactions ontop of the item
 * in qml.
 */
void cwCaptureItem::setBoundingBox(QRectF boundingbox)
{
    if(boundingbox != BoundingBox) {
        BoundingBox = boundingbox;
        emit boundingBoxChanged();
    }
}
/*!
    \qmlproperty georectangle QtPositioning::Location::boundingBox

    This property holds the recommended region to use when displaying the location.
    For example, a building's location may have a region centered around the building,
    but the region is large enough to show it's immediate surrounding geographical
    context.

    Note: this property's changed() signal is currently emitted only if the
    whole object changes, not if only the contents of the object change.
*/
void QDeclarativeGeoLocation::setBoundingBox(const QGeoRectangle &boundingBox)
{
    if (m_boundingBox == boundingBox)
        return;

    m_boundingBox = boundingBox;
    emit boundingBoxChanged();
}