Changeset View
Changeset View
Standalone View
Standalone View
src/items/field/KReportDesignerItemField.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 33 | public: | |||
---|---|---|---|---|---|
42 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget *widget = nullptr) override; | 42 | void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget *widget = nullptr) override; | ||
43 | KReportDesignerItemField* clone() override; | 43 | KReportDesignerItemField* clone() override; | ||
44 | 44 | | |||
45 | protected: | 45 | protected: | ||
46 | void mousePressEvent(QGraphicsSceneMouseEvent * event) override; | 46 | void mousePressEvent(QGraphicsSceneMouseEvent * event) override; | ||
47 | 47 | | |||
48 | private: | 48 | private: | ||
49 | void init(QGraphicsScene *scene); | 49 | void init(QGraphicsScene *scene); | ||
50 | QRect getTextRect() const; | 50 | QRectF getTextRect() const; | ||
51 | 51 | | |||
52 | private Q_SLOTS: | 52 | private Q_SLOTS: | ||
53 | void slotPropertyChanged(KPropertySet &, KProperty &); | 53 | void slotPropertyChanged(KPropertySet &, KProperty &); | ||
54 | }; | 54 | }; | ||
55 | 55 | | |||
56 | #endif | 56 | #endif |