TextAutoGenerateText::TextAutoGenerateTag Class

class TextAutoGenerateText::TextAutoGenerateTag

The TextAutoGenerateTag class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateText/TextAutoGenerateTag>

Public Functions

TextAutoGenerateTag()
QColor color() const
QByteArray identifier() const
QString name() const
void setColor(const QColor &newColor)
void setIdentifier(const QByteArray &newIdentifier)
void setName(const QString &newName)
bool operator==(const TextAutoGenerateText::TextAutoGenerateTag &other) const

Static Public Members

TextAutoGenerateText::TextAutoGenerateTag deserialize(const QJsonObject &source)
QByteArray serialize(const TextAutoGenerateText::TextAutoGenerateTag &tag, bool toBinary = true)

Detailed Description

Member Function Documentation

TextAutoGenerateTag::TextAutoGenerateTag()

TextAutoGenerateTag

QColor TextAutoGenerateTag::color() const

color Returns

See also setColor().

[static] TextAutoGenerateText::TextAutoGenerateTag TextAutoGenerateTag::deserialize(const QJsonObject &source)

Deserializes a TextAutoGenerateTag object from JSON. source The JSON object to deserialize from Returns The deserialized TextAutoGenerateTag object

QByteArray TextAutoGenerateTag::identifier() const

identifier Returns

See also setIdentifier().

QString TextAutoGenerateTag::name() const

name Returns

See also setName().

[static] QByteArray TextAutoGenerateTag::serialize(const TextAutoGenerateText::TextAutoGenerateTag &tag, bool toBinary = true)

Serializes the given TextAutoGenerateTag object. tag The TextAutoGenerateTag object to serialize toBinary true to serialize to binary format, false for JSON format Returns The serialized data as a QByteArray

void TextAutoGenerateTag::setColor(const QColor &newColor)

setColor newColor

See also color().

void TextAutoGenerateTag::setIdentifier(const QByteArray &newIdentifier)

setIdentifier newIdentifier

See also identifier().

void TextAutoGenerateTag::setName(const QString &newName)

setName newName

See also name().

bool TextAutoGenerateTag::operator==(const TextAutoGenerateText::TextAutoGenerateTag &other) const

Compares this TextAutoGenerateTag with another object for equality. other The TextAutoGenerateTag object to compare with Returns true if both objects are equal, false otherwise