#ifndef CSCHEMEITEM_H #define CSCHEMEITEM_H #include class CRectItem; class CTextItem; class CLineItem; class CSchemeItem : public QObject { Q_OBJECT public: explicit CSchemeItem(const QString text, QObject *parent = nullptr); CRectItem *rectItem() const; CTextItem *textItem() const; CLineItem *lineItem() const; qreal xMargin() const; void setXMargin(qreal x); qreal yMargin() const; void setYMargin(qreal y); qreal minWidth() const; void setMinWidth(qreal w); qreal minHeight() const; void setMinHeight(qreal h); qreal textWidth() const; qreal textHeight() const; qreal borderWidth() const; qreal borderHeight() const; signals: private: CRectItem *m_rectItem = nullptr; CTextItem *m_textItem = nullptr; CLineItem *m_lineItem = nullptr; qreal m_xMargin = 10; qreal m_yMargin = 5; qreal m_minWidth = 100; qreal m_minHeight = 30; }; #endif // CSCHEMEITEM_H