16QString Comment::commentTypeToString(
const Comment::Type type)
20 return QStringLiteral(
"1");
22 return QStringLiteral(
"4");
23 case KnowledgeBaseComment:
24 return QStringLiteral(
"7");
26 return QStringLiteral(
"8");
57Comment::Comment(
const Comment &other)
72void Comment::setId(
const QString &
id)
82void Comment::setSubject(
const QString &subject)
84 d->m_subject = subject;
92void Comment::setText(
const QString &text)
102void Comment::setChildCount(
const int childCount)
104 d->m_childCount = childCount;
107int Comment::childCount()
const
109 return d->m_childCount;
112void Comment::setUser(
const QString &user)
122void Comment::setDate(
const QDateTime &date)
144 d->m_children = std::move(children);
149 return d->m_children;
152bool Comment::isValid()
const
154 return !(d->m_id.isEmpty());
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.