8#include "keduvocmultiplechoice.h"
10class KEduVocMultipleChoice::KEduVocMultipleChoicePrivate
16KEduVocMultipleChoice::KEduVocMultipleChoice()
17 : d(new KEduVocMultipleChoicePrivate)
21KEduVocMultipleChoice::KEduVocMultipleChoice(
const KEduVocMultipleChoice &other)
22 : d(new KEduVocMultipleChoicePrivate)
24 d->m_choices = other.choices();
27KEduVocMultipleChoice::KEduVocMultipleChoice(
const QStringList &choices)
28 : d(new KEduVocMultipleChoicePrivate)
30 foreach (
const QString &choice, choices) {
36KEduVocMultipleChoice::~KEduVocMultipleChoice()
41KEduVocMultipleChoice &KEduVocMultipleChoice::operator=(
const KEduVocMultipleChoice &other)
43 d->m_choices = other.choices();
52bool KEduVocMultipleChoice::isEmpty()
const
57void KEduVocMultipleChoice::clear()
62QString KEduVocMultipleChoice::choice(
int index)
const
65 if (d->m_choices.
size() > index) {
66 choice = d->m_choices[index];
71unsigned KEduVocMultipleChoice::size()
const
73 return d->m_choices.
size();
76bool KEduVocMultipleChoice::operator==(
const KEduVocMultipleChoice &choice)
const
78 return d->m_choices == choice.choices();
81void KEduVocMultipleChoice::appendChoice(
const QString &s)
void append(QList< T > &&value)
bool isEmpty() const const
qsizetype size() const const
bool isEmpty() const const