LibKEduVocDocument
keduvoctext.cpp
177 return d->m_text == other.d->m_text && d->m_preGrade == other.d->m_preGrade && d->m_grade == other.d->m_grade
197 KEduVocKvtml2Writer::appendTextElement(gradeElement, KVTML_PREGRADE, QString::number(preGrade()));
200 KEduVocKvtml2Writer::appendTextElement(gradeElement, KVTML_CURRENTGRADE, QString::number(grade()));
203 KEduVocKvtml2Writer::appendTextElement(gradeElement, KVTML_COUNT, QString::number(practiceCount()));
206 KEduVocKvtml2Writer::appendTextElement(gradeElement, KVTML_ERRORCOUNT, QString::number(badCount()));
209 KEduVocKvtml2Writer::appendTextElement(gradeElement, KVTML_DATE, practiceDate().toString(Qt::ISODate));
212 KEduVocKvtml2Writer::appendTextElement(gradeElement, KVTML_INTERVAL, QString::number(interval()));
static void appendTextElement(QDomElement &parent, const QString &elementName, const QString &text)
Helper function, appends a new element AND a text child to parent Only appends if text is NOT empty.
Definition keduvockvtml2writer.cpp:630
void setPracticeCount(count_t count)
set how often this entry has been practiced as int
Definition keduvoctext.cpp:127
bool operator==(const KEduVocText &other) const
Compare two sets of grades.
Definition keduvoctext.cpp:175
count_t practiceCount() const
returns how often this entry has been practiced as int
Definition keduvoctext.cpp:112
KEduVocText & operator=(const KEduVocText &other)
Equal operator to copy grades.
Definition keduvoctext.cpp:162
void setInterval(quint32 interval)
Set interval until next practice is due.
Definition keduvoctext.cpp:157
void incPracticeCount()
increment query count of given translation by 1
Definition keduvoctext.cpp:117
char * toString(const EngineQuery &query)
QDateTime fromSecsSinceEpoch(qint64 secs)
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
QDomElement createElement(const QString &tagName)
QString text() const const
QDomNode appendChild(const QDomNode &newChild)
QDomElement firstChildElement(const QString &tagName, const QString &namespaceURI) const const
bool isNull() const const
QDomDocument ownerDocument() const const
bool isEmpty() const const
QString number(double n, char format, int precision)
QString simplified() const const
int toInt(bool *ok, int base) const const
ISODate
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.