libkdegames/libkdegamesprivate
kchatbaseitemdelegate.cpp
Go to the documentation of this file.
56 painter->drawText(option.rect.x() + 3 + QFontMetrics(((KChatBaseModel*)index.model())->nameFont()).width(i18n("%1: ",sender)),
The class of the elements stored in the chat list model.
Definition: kchatbasemodel.h:41
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplementation of the default paint method.
Definition: kchatbaseitemdelegate.cpp:36
T value() const
void setFont(const QFont &font)
void drawText(const QPointF &position, const QString &text)
virtual QVariant data(const QModelIndex &index, int role) const =0
KChatBaseItemDelegate(QObject *parent=0)
Constructs a KChatBaseItemDelegate object.
Definition: kchatbaseitemdelegate.cpp:27
int width(const QString &text, int len) const
const QAbstractItemModel * model() const
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplementation of the default sizeHint.
Definition: kchatbaseitemdelegate.cpp:60
virtual ~KChatBaseItemDelegate()
Destruct a KChatBaseItemDelegate object.
Definition: kchatbaseitemdelegate.cpp:32
QFontMetrics fontMetrics() const
int height() const
The model used to store messages displayed in the chat dialog messages list.
Definition: kchatbasemodel.h:76
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.