85 "(?:(\\d+)(?:\\.(\\d+))?S)?" 107 &days, &hours, &minutes, &sec, &msec));
110 minutes, sec, msec));
123 hours, minutes, seconds, mseconds));
129 "Calling Duration::value() makes no sense");
136 "Calling Duration::fromValue() makes no sense");
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
const DayCountProperty m_days
const SecondProperty m_seconds
virtual YearProperty years() const
#define QT_END_NAMESPACE
This macro expands to.
Base class for classes implementing durations.
virtual HourProperty hours() const
The QRegExp class provides pattern matching using regular expressions.
static const AtomicType::Ptr xsDuration
Due to strong interdependencies, this file contains the definitions for the classes Item...
Duration(const bool isPositive, const YearProperty years, const MonthProperty months, const DayCountProperty days, const HourProperty hours, const MinuteProperty minutes, const SecondProperty seconds, const MSecondProperty mseconds)
virtual ItemType::Ptr type() const
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static Duration::Ptr fromComponents(const bool isPositive, const YearProperty years, const MonthProperty months, const DayCountProperty days, const HourProperty hours, const MinuteProperty minutes, const SecondProperty seconds, const MSecondProperty mseconds)
The QString class provides a Unicode character string.
virtual MonthProperty months() const
virtual MSecondProperty mseconds() const
virtual Value value() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
const MinuteProperty m_minutes
The namespace for the internal API of QtXmlPatterns.
static Duration::Ptr fromLexical(const QString &string)
#define Q_ASSERT_X(cond, where, what)
qint64 Value
The amount in milli seconds.
QString & append(QChar c)
Represents an item in the XPath 2.0 Data Model.
virtual QString stringValue() const
virtual SecondProperty seconds() const
const YearProperty m_years
const HourProperty m_hours
virtual MinuteProperty minutes() const
const MonthProperty m_months
static AtomicValue::Ptr create(const CaptureTable &captTable, const QString &lexical, bool *isPositive, YearProperty *years, MonthProperty *months, DayCountProperty *days, HourProperty *hours, MinuteProperty *minutes, SecondProperty *seconds, MSecondProperty *mseconds)
Acts as a mapping table for AbstractDuration::create() and describes where certain fields in a QRegEx...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
const MSecondProperty m_mseconds
virtual Item fromValue(const Value val) const
static QString serializeMSeconds(const MSecondProperty mseconds)
virtual DayCountProperty days() const