Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportUtils.cpp
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Line(s) | 277 | { | |||
---|---|---|---|---|---|
351 | else { | 351 | else { | ||
352 | // QFont::AbsoluteSpacing | 352 | // QFont::AbsoluteSpacing | ||
353 | // A positive value increases the letter spacing by the corresponding pixels; a negative value decreases the spacing. | 353 | // A positive value increases the letter spacing by the corresponding pixels; a negative value decreases the spacing. | ||
354 | el->setAttribute(QLatin1String("fo:letter-spacing"), roundValueToString(font.letterSpacing())); | 354 | el->setAttribute(QLatin1String("fo:letter-spacing"), roundValueToString(font.letterSpacing())); | ||
355 | } | 355 | } | ||
356 | } | 356 | } | ||
357 | 357 | | |||
358 | 358 | | |||
359 | void KReportUtils::buildXMLRect(QDomElement *entity, KReportPosition *pos, KReportSize *size) | 359 | void KReportUtils::buildXMLRect(QDomElement *entity, const QPointF &pos, const QSizeF &size) | ||
360 | { | 360 | { | ||
361 | Q_ASSERT(entity); | 361 | Q_ASSERT(entity); | ||
362 | Q_ASSERT(pos); | 362 | | ||
363 | Q_ASSERT(size); | 363 | KReportUtils::setAttribute(entity, pos); | ||
364 | KReportUtils::setAttribute(entity, pos->toPoint() ); | 364 | KReportUtils::setAttribute(entity, size ); | ||
365 | KReportUtils::setAttribute(entity, size->toPoint() ); | | |||
366 | } | 365 | } | ||
367 | 366 | | |||
368 | void KReportUtils::buildXMLTextStyle(QDomDocument *doc, QDomElement *entity, const KRTextStyleData &ts) | 367 | void KReportUtils::buildXMLTextStyle(QDomDocument *doc, QDomElement *entity, const KRTextStyleData &ts) | ||
369 | { | 368 | { | ||
370 | Q_ASSERT(doc); | 369 | Q_ASSERT(doc); | ||
371 | Q_ASSERT(entity); | 370 | Q_ASSERT(entity); | ||
372 | QDomElement element = doc->createElement(QLatin1String("report:text-style")); | 371 | QDomElement element = doc->createElement(QLatin1String("report:text-style")); | ||
373 | 372 | | |||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |