messagelist
themedelegate.h
Go to the documentation of this file.
212 void paint( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
The ContentItem class defines a content item inside a Row.
Definition: theme.h:73
static QFont itemFont(const Theme::ContentItem *ci, const Item *item)
return the font to paint given item with, checking global kmail settings and theme settings ...
Definition: themedelegate.cpp:1662
ThemeDelegate(QAbstractItemView *parent)
Definition: themedelegate.cpp:50
QRect hitRowRect() const
Returns the rectangle of the row that was reported as hit by the previous call to hitTest()...
Definition: themedelegate.h:160
The Row class defines a row of items inside a Column.
Definition: theme.h:466
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplemented from QStyledItemDelegate.
Definition: themedelegate.cpp:1645
The Column class defines a view column available inside this theme.
Definition: theme.h:564
static QString itemFontKey(const Theme::ContentItem *ci, const Item *item)
return the font key to paint given item with, checking global kmail settings and theme settings ...
Definition: themedelegate.cpp:1683
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Reimplemented from QStyledItemDelegate.
Definition: themedelegate.cpp:550
Item * hitItem() const
Returns the Item that was reported as hit by the previous call to hitTest().
Definition: themedelegate.h:108
const Theme::Column * hitColumn() const
Returns the theme column that was reported as hit by the previous call to hitTest().
Definition: themedelegate.h:125
const QModelIndex & hitIndex() const
Returns the model index that was reported as hit by the previous call to hitTest().
Definition: themedelegate.h:100
int hitColumnIndex() const
Returns the index of the theme column that was reported as hit by the previous call to hitTest()...
Definition: themedelegate.h:134
int hitRowIndex() const
Returns the index of the theme row that was reported as hit by the previous call to hitTest()...
Definition: themedelegate.h:151
const Theme::Row * hitRow() const
Returns the theme row that was reported as hit by the previous call to hitTest(). ...
Definition: themedelegate.h:144
QRect hitContentItemRect() const
Returns the bounding rect of the content item that was reported as hit by the previous call to hitTes...
Definition: themedelegate.h:193
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:52
bool hitContentItemRight() const
Returns true if the hit theme content item was a right item and false otherwise.
Definition: themedelegate.h:184
bool hitTest(const QPoint &viewportPoint, bool exact=true)
Performs a hit test on the specified viewport point.
Definition: themedelegate.cpp:1173
virtual Item * itemFromIndex(const QModelIndex &index) const =0
Returns the Item for the specified model index.
const Theme::ContentItem * hitContentItem() const
Returns the theme content item that was reported as hit by the previous call to hitTest().
Definition: themedelegate.h:177
void setTheme(const Theme *theme)
Definition: themedelegate.cpp:62
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:65
The ThemeDelegate paints the message list view message and group items by using the supplied Theme...
Definition: themedelegate.h:45
QRect hitItemRect() const
Returns the visual rectangle of the item that was reported as hit by the previous call to hitTest()...
Definition: themedelegate.h:117
bool hitRowIsMessageRow() const
Returns true if the hitRow() is a message row, false otherwise.
Definition: themedelegate.h:167
QSize sizeHintForItemTypeAndColumn(Item::Type type, int column, const Item *item=0) const
Returns a heuristic sizeHint() for the specified item type and column.
Definition: themedelegate.cpp:1592
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 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:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.