Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/scripting/KReportScriptDraw.cpp
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | |||||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | void KReportScriptDraw::text(qreal x, qreal y, const QString &txt, const QString &fnt, int pt, const QString &fc, const QString&bc, const QString &lc, qreal lw, int o) | 99 | void KReportScriptDraw::text(qreal x, qreal y, const QString &txt, const QString &fnt, int pt, const QString &fc, const QString&bc, const QString &lc, qreal lw, int o) | ||
100 | { | 100 | { | ||
101 | if (m_curPage) { | 101 | if (m_curPage) { | ||
102 | QFont f(fnt, pt); | 102 | QFont f(fnt, pt); | ||
103 | QRectF r = QFontMetrics(f).boundingRect(txt); | 103 | QRectF r = QFontMetrics(f).boundingRect(txt); | ||
104 | 104 | | |||
105 | KRTextStyleData ts; | 105 | KReportTextStyleData ts; | ||
106 | ts.font = f; | 106 | ts.font = f; | ||
107 | ts.backgroundColor = QColor(bc); | 107 | ts.backgroundColor = QColor(bc); | ||
108 | ts.foregroundColor = QColor(fc); | 108 | ts.foregroundColor = QColor(fc); | ||
109 | ts.backgroundOpacity = o; | 109 | ts.backgroundOpacity = o; | ||
110 | 110 | | |||
111 | KReportLineStyle ls; | 111 | KReportLineStyle ls; | ||
112 | ls.setColor(QColor(lc)); | 112 | ls.setColor(QColor(lc)); | ||
113 | ls.setWeight(lw); | 113 | ls.setWeight(lw); | ||
Show All 19 Lines |