aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/scaleitem.cpp
blob: 0a4066cf2b8d4b26ec0f34a59f72d80f84c25e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#include "scaleitem.h"

#include "layeritem.h"

namespace QmlDesigner {

ScaleItem::ScaleItem(LayerItem *layerItem, ScaleIndicator *indicator)
    : QGraphicsRectItem(layerItem),
    m_indicator(indicator)
{
    Q_ASSERT(layerItem);
    Q_ASSERT(indicator);
}

ScaleIndicator* ScaleItem::indicator() const
{
    return m_indicator;
}

}