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
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
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
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
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 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.