~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-private-shapes

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/plugin/privates/frame.h

  • Committer: Loïc Molinari
  • Date: 2016-01-12 22:16:02 UTC
  • Revision ID: loic.molinari@canonical.com-20160112221602-m8ghic22otrksv4v
Renamed weight property to thickness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    static const QSGGeometry::AttributeSet& attributeSet();
47
47
 
48
48
    UCFrameNode();
49
 
    void updateGeometry(const QSizeF& itemSize, float weight, float radius, QRgb color);
 
49
    void updateGeometry(const QSizeF& itemSize, float thickness, float radius, QRgb color);
50
50
 
51
51
private:
52
52
    UCFrameMaterial m_material;
57
57
{
58
58
    Q_OBJECT
59
59
 
60
 
    Q_PROPERTY(qreal weight READ weight WRITE setWeight NOTIFY weightChanged)
 
60
    Q_PROPERTY(qreal thickness READ thickness WRITE setThickness NOTIFY thicknessChanged)
61
61
    Q_PROPERTY(qreal radius READ radius WRITE setRadius NOTIFY radiusChanged)
62
62
    Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
63
63
 
64
64
public:
65
65
    UCFrame(QQuickItem* parent = 0);
66
66
 
67
 
    qreal weight() const { return m_weight; }
68
 
    void setWeight(qreal weight);
 
67
    qreal thickness() const { return m_thickness; }
 
68
    void setThickness(qreal thickness);
69
69
    qreal radius() const { return m_radius; }
70
70
    void setRadius(qreal radius);
71
71
    QColor color() const {
73
73
    void setColor(const QColor& color);
74
74
 
75
75
Q_SIGNALS:
76
 
    void weightChanged();
 
76
    void thicknessChanged();
77
77
    void radiusChanged();
78
78
    void colorChanged();
79
79
 
81
81
    virtual QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* data);
82
82
 
83
83
    QRgb m_color;
84
 
    float m_weight;
 
84
    float m_thickness;
85
85
    float m_radius;
86
86
 
87
87
    Q_DISABLE_COPY(UCFrame)