Changeset View
Changeset View
Standalone View
Standalone View
src/items/label/KReportDesignerItemLabel.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | |||||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | // methods (deconstructor) | 85 | // methods (deconstructor) | ||
86 | KReportDesignerItemLabel::~KReportDesignerItemLabel() | 86 | KReportDesignerItemLabel::~KReportDesignerItemLabel() | ||
87 | {} | 87 | {} | ||
88 | 88 | | |||
89 | QRectF KReportDesignerItemLabel::getTextRect() const | 89 | QRectF KReportDesignerItemLabel::getTextRect() const | ||
90 | { | 90 | { | ||
91 | return QFontMetrics(font()).boundingRect(x(), y(), 0, 0, textFlags(), m_text->value().toString()); | 91 | return QFontMetricsF(font()).boundingRect(QRectF(x(), y(), 0, 0), textFlags(), m_text->value().toString()); | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | void KReportDesignerItemLabel::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) | 94 | void KReportDesignerItemLabel::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) | ||
95 | { | 95 | { | ||
96 | Q_UNUSED(option); | 96 | Q_UNUSED(option); | ||
97 | Q_UNUSED(widget); | 97 | Q_UNUSED(widget); | ||
98 | 98 | | |||
99 | if (m_inlineEdit->isVisible()) { | 99 | if (m_inlineEdit->isVisible()) { | ||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |