libkdegames/libkdegamesprivate
kchatbasemodel.cpp
Go to the documentation of this file.
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Reimplementation of the inherited method.
Definition: kchatbasemodel.cpp:216
The class of the elements stored in the chat list model.
Definition: kchatbasemodel.h:41
bool removeRow(int row, const QModelIndex &parent)
void setSystemBothFont(const QFont &font)
Same as setBothFont but applies only to system messages.
Definition: kchatbasemodel.cpp:138
const QFont & systemMessageFont() const
Same as systemMessageFont but applies only to system messages.
Definition: kchatbasemodel.cpp:147
const QFont & systemNameFont() const
Same as systemNameFont but applies only to system messages.
Definition: kchatbasemodel.cpp:144
virtual void addMessage(const QString &fromName, const QString &text)
Add a text in the listbox.
Definition: kchatbasemodel.cpp:224
virtual void addSystemMessage(const QString &fromName, const QString &text)
This works just like addMessage but adds a system message.
Definition: kchatbasemodel.cpp:240
virtual void readConfig(KConfig *conf=0)
Read the configuration from a KConfig object.
Definition: kchatbasemodel.cpp:164
void setBothFont(const QFont &font)
This sets both - nameFont and messageFont to font.
Definition: kchatbasemodel.cpp:116
bool isValid() const
void endInsertRows()
void setSystemMessageFont(const QFont &font)
Same as setMessageFont but applies only to system messages.
Definition: kchatbasemodel.cpp:133
Definition: kchatbasemodel.h:48
void setMessageFont(const QFont &font)
Set the font that is used for the message part of a message.
Definition: kchatbasemodel.cpp:111
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
Definition: kchatbasemodel.h:47
void setSystemNameFont(const QFont &font)
Same as setNameFont but applies only to system messages.
Definition: kchatbasemodel.cpp:128
virtual QVariant data(const QModelIndex &index, int role) const
Reimplementation of the inherited method.
Definition: kchatbasemodel.cpp:203
void setNameFont(const QFont &font)
Set the font that is used for the name part of a message.
Definition: kchatbasemodel.cpp:106
virtual void saveConfig(KConfig *conf=0)
Save the configuration of the dialog to a KConfig object.
Definition: kchatbasemodel.cpp:150
QVariant fromValue(const T &value)
virtual bool removeRows(int row, int count, const QModelIndex &parent)
void beginInsertRows(const QModelIndex &parent, int first, int last)
const QFont & messageFont() const
This font should be used for a message.
Definition: kchatbasemodel.cpp:125
const QFont & nameFont() const
This font should be used for the name (the "from: " part) of a message.
Definition: kchatbasemodel.cpp:122
void endRemoveRows()
void setMaxItems(int maxItems)
Set the maximum number of items in the list.
Definition: kchatbasemodel.cpp:183
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.