KDEGames
kchatbasemodel.cpp
35KChatBaseMessage::KChatBaseMessage(const QString &sender, const QString &message, MessageType type)
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
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
QString readEntry(const char *key, const char *aDefault=nullptr) const
void beginInsertRows(const QModelIndex &parent, int first, int last)
void beginRemoveRows(const QModelIndex &parent, int first, int last)
void endInsertRows()
void endRemoveRows()
bool removeRow(int row, const QModelIndex &parent)
virtual bool removeRows(int row, int count, const QModelIndex &parent)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
bool isValid() const const
int row() const const
QObject * parent() const const
DisplayRole
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:50:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:50:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.