24 qWarning(
"Unexpected alignment flag in KDReports::Report::stringToAlignment(): %s", qPrintable(str));
46 qWarning(
"Unexpected variable type: %s", qPrintable(type));
63 if (element.
hasAttribute(QStringLiteral(
"background"))) {
91 KDReports::HeaderLocations loc;
93 for (
const QString &s : tokens) {
106 qWarning() <<
"Found unexpected token in header location attribute:" << token;
static KDReports::VariableType stringToVariableType(const QString &type)
static Qt::AlignmentFlag stringToAlignment(const QString &str)
static QColor readBackground(const QDomElement &element)
static QColor readColor(const QDomElement &element, const char *attributeName)
static KDReports::HeaderLocations parseHeaderLocation(const QString &xmlAttr)
@ ISODate
names but unlocalized order of names and numbers
@ TextTime
Current time in text format like "13:42:59".
@ LocaleDate
Current date in locale-dependent format, deprecated in favour of SystemLocaleShortDate or SystemLocal...
@ LocaleTime
Current time in locale-dependent format.
@ ISOTime
Current time in ISO 8601 format like "13:42:59".
@ AllPages
All pages (except first and last if FirstPage or LastPage have their own headers)
@ FirstPage
The first page of the report.
@ EvenPages
The even pages of the report: 2, 4, 6 etc.
@ LastPage
The last page of the report.
@ OddPages
The odd pages of the report: 1 (unless FirstPage has its own header), 3, 5, 7 etc.
QString attribute(const QString &name, const QString &defValue) const const
bool hasAttribute(const QString &name) const const
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
int toInt(bool *ok, int base) const const
QString toLower() const const
QString trimmed() const const