Messagelib
themedelegate.h
72 QSize sizeHintForItemTypeAndColumn(Item::Type type, int column, const Item *item = nullptr) const;
77 * When the hit test is successful then the hitIndex(), hitItem(), hitColumn(), hitRow(), and hitContentItem()
101 * Returns the visual rectangle of the item that was reported as hit by the previous call to hitTest().
116 * Returns the index of the theme column that was reported as hit by the previous call to hitTest().
133 * Returns the index of the theme row that was reported as hit by the previous call to hitTest().
157 * but no content item was exactly hit (the user might have clicked inside a blank unused space instead).
168 * Returns the bounding rect of the content item that was reported as hit by the previous call to hitTest().
185 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
Q_OBJECTQ_OBJECT
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Reimplemented from QStyledItemDelegate.
Definition: themedelegate.cpp:569
Item * hitItem() const
Returns the Item that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1795
The Row class defines a row of items inside a Column.
Definition: theme.h:413
The ThemeDelegate paints the message list view message and group items by using the supplied Theme.
Definition: themedelegate.h:30
QSize sizeHintForItemTypeAndColumn(Item::Type type, int column, const Item *item=nullptr) const
Returns a heuristic sizeHint() for the specified item type and column.
Definition: themedelegate.cpp:1850
bool hitTest(const QPoint &viewportPoint, bool exact=true)
Performs a hit test on the specified viewport point.
Definition: themedelegate.cpp:1261
int hitColumnIndex() const
Returns the index of the theme column that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1810
QRect hitRowRect() const
Returns the rectangle of the row that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1825
virtual Item * itemFromIndex(const QModelIndex &index) const =0
Returns the Item for the specified model index.
const Theme::Column * hitColumn() const
Returns the theme column that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1805
QRect hitItemRect() const
Returns the visual rectangle of the item that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1800
void generalFontChanged()
Called when the global fonts change (from systemsettings)
Definition: themedelegate.cpp:1929
QRect hitContentItemRect() const
Returns the bounding rect of the content item that was reported as hit by the previous call to hitTes...
Definition: themedelegate.cpp:1845
bool hitContentItemRight() const
Returns true if the hit theme content item was a right item and false otherwise.
Definition: themedelegate.cpp:1840
const Theme::ContentItem * hitContentItem() const
Returns the theme content item that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1835
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
Reimplemented from QStyledItemDelegate.
Definition: themedelegate.cpp:1900
bool hitRowIsMessageRow() const
Returns true if the hitRow() is a message row, false otherwise.
Definition: themedelegate.cpp:1830
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:48
The ContentItem class defines a content item inside a Row.
Definition: theme.h:56
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:47
const QModelIndex & hitIndex() const
Returns the model index that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1790
QObject * parent() const const
int hitRowIndex() const
Returns the index of the theme row that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1820
The Column class defines a view column available inside this theme.
Definition: theme.h:506
const Theme::Row * hitRow() const
Returns the theme row that was reported as hit by the previous call to hitTest().
Definition: themedelegate.cpp:1815
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.