KDEGames
kchatbasemodel.h
The class of the elements stored in the chat list model.
Definition kchatbasemodel.h:35
virtual void addSystemMessage(const QString &fromName, const QString &text)
This works just like addMessage but adds a system message.
Definition kchatbasemodel.cpp:222
void setSystemNameFont(const QFont &font)
Same as setNameFont but applies only to system messages.
Definition kchatbasemodel.cpp:110
void setSystemMessageFont(const QFont &font)
Same as setMessageFont but applies only to system messages.
Definition kchatbasemodel.cpp:115
const QFont & messageFont() const
This font should be used for a message.
Definition kchatbasemodel.cpp:105
virtual void readConfig(KConfig *conf=nullptr)
Read the configuration from a KConfig object.
Definition kchatbasemodel.cpp:150
void setMessageFont(const QFont &font)
Set the font that is used for the message part of a message.
Definition kchatbasemodel.cpp:89
const QFont & systemMessageFont() const
Same as systemMessageFont but applies only to system messages.
Definition kchatbasemodel.cpp:131
void setNameFont(const QFont &font)
Set the font that is used for the name part of a message.
Definition kchatbasemodel.cpp:84
virtual void addMessage(const QString &fromName, const QString &text)
Add a text in the listbox.
Definition kchatbasemodel.cpp:207
void setSystemBothFont(const QFont &font)
Same as setBothFont but applies only to system messages.
Definition kchatbasemodel.cpp:120
void setBothFont(const QFont &font)
This sets both - nameFont and messageFont to font.
Definition kchatbasemodel.cpp:94
const QFont & nameFont() const
This font should be used for the name (the "from: " part) of a message.
Definition kchatbasemodel.cpp:100
const QFont & systemNameFont() const
Same as systemNameFont but applies only to system messages.
Definition kchatbasemodel.cpp:126
void setMaxItems(int maxItems)
Set the maximum number of items in the list.
Definition kchatbasemodel.cpp:169
virtual void saveConfig(KConfig *conf=nullptr)
Save the configuration of the dialog to a KConfig object.
Definition kchatbasemodel.cpp:136
QVariant data(const QModelIndex &index, int role) const override
Reimplementation of the inherited method.
Definition kchatbasemodel.cpp:187
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Reimplementation of the inherited method.
Definition kchatbasemodel.cpp:199
virtual QModelIndex parent(const QModelIndex &index) const const=0
QAbstractListModel(QObject *parent)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:52:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:52:44 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.