Changeset View
Changeset View
Standalone View
Standalone View
src/items/text/KReportDesignerItemText.h
Show All 39 Lines | 34 | public: | |||
---|---|---|---|---|---|
40 | void buildXML(QDomDocument *doc, QDomElement *parent) override; | 40 | void buildXML(QDomDocument *doc, QDomElement *parent) override; | ||
41 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override; | 41 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override; | ||
42 | KReportDesignerItemText* clone() override; | 42 | KReportDesignerItemText* clone() override; | ||
43 | 43 | | |||
44 | protected: | 44 | protected: | ||
45 | void mousePressEvent(QGraphicsSceneMouseEvent * event) override; | 45 | void mousePressEvent(QGraphicsSceneMouseEvent * event) override; | ||
46 | 46 | | |||
47 | private: | 47 | private: | ||
48 | QRect getTextRect() const; | 48 | QRectF getTextRect() const; | ||
49 | void init(QGraphicsScene *scene); | 49 | void init(QGraphicsScene *scene); | ||
50 | 50 | | |||
51 | private Q_SLOTS: | 51 | private Q_SLOTS: | ||
52 | void slotPropertyChanged(KPropertySet &, KProperty &); | 52 | void slotPropertyChanged(KPropertySet &, KProperty &); | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | #endif | 55 | #endif |