Changeset View
Changeset View
Standalone View
Standalone View
src/items/field/KReportDesignerItemField.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 65 | { | |||
---|---|---|---|---|---|
70 | n = e.firstChild(); | 70 | n = e.firstChild(); | ||
71 | return new KReportDesignerItemField(n, designer(), nullptr); | 71 | return new KReportDesignerItemField(n, designer(), nullptr); | ||
72 | } | 72 | } | ||
73 | 73 | | |||
74 | // methods (deconstructor) | 74 | // methods (deconstructor) | ||
75 | KReportDesignerItemField::~KReportDesignerItemField() | 75 | KReportDesignerItemField::~KReportDesignerItemField() | ||
76 | {} | 76 | {} | ||
77 | 77 | | |||
78 | QRect KReportDesignerItemField::getTextRect() const | 78 | QRectF KReportDesignerItemField::getTextRect() const | ||
79 | { | 79 | { | ||
80 | return QFontMetrics(font()).boundingRect(x(), y(), 0, 0, textFlags(), renderText()); | 80 | return QFontMetricsF(font()).boundingRect(QRectF(x(), y(), 0, 0), textFlags(), renderText()); | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | 83 | | |||
84 | 84 | | |||
85 | void KReportDesignerItemField::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget *widget) | 85 | void KReportDesignerItemField::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget *widget) | ||
86 | { | 86 | { | ||
87 | Q_UNUSED(option); | 87 | Q_UNUSED(option); | ||
88 | Q_UNUSED(widget); | 88 | Q_UNUSED(widget); | ||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |