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