MessageList::Core::ThemeDelegate
#include <themedelegate.h>
Detailed Description
The ThemeDelegate paints the message list view message and group items by using the supplied Theme.
Definition at line 30 of file themedelegate.h.
Constructor & Destructor Documentation
◆ ThemeDelegate()
|
explicit |
Definition at line 37 of file themedelegate.cpp.
Member Function Documentation
◆ generalFontChanged()
void ThemeDelegate::generalFontChanged | ( | ) |
Called when the global fonts change (from systemsettings)
Definition at line 1929 of file themedelegate.cpp.
◆ hitColumn()
const Theme::Column * ThemeDelegate::hitColumn | ( | ) | const |
Returns the theme column that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function.
Definition at line 1805 of file themedelegate.cpp.
◆ hitColumnIndex()
int ThemeDelegate::hitColumnIndex | ( | ) | const |
Returns the index of the theme column that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function. This is the same as hitIndex().column().
Definition at line 1810 of file themedelegate.cpp.
◆ hitContentItem()
const Theme::ContentItem * ThemeDelegate::hitContentItem | ( | ) | const |
Returns the theme content item that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function. This function may also return a null content item when hitTest() returned true. This means that the item was globally hit but no content item was exactly hit (the user might have clicked inside a blank unused space instead).
Definition at line 1835 of file themedelegate.cpp.
◆ hitContentItemRect()
QRect ThemeDelegate::hitContentItemRect | ( | ) | const |
Returns the bounding rect of the content item that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function. The result of this function is to be considered invalid also when hitContentItem() returns 0.
Definition at line 1845 of file themedelegate.cpp.
◆ hitContentItemRight()
bool ThemeDelegate::hitContentItemRight | ( | ) | const |
Returns true if the hit theme content item was a right item and false otherwise.
The result of this function is valid only if hitContentItem() returns true.
Definition at line 1840 of file themedelegate.cpp.
◆ hitIndex()
const QModelIndex & ThemeDelegate::hitIndex | ( | ) | const |
Returns the model index that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function.
Definition at line 1790 of file themedelegate.cpp.
◆ hitItem()
Item * ThemeDelegate::hitItem | ( | ) | const |
Returns the Item that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function.
Definition at line 1795 of file themedelegate.cpp.
◆ hitItemRect()
QRect ThemeDelegate::hitItemRect | ( | ) | const |
Returns the visual rectangle of the item that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function. Please note that this rectangle refers to a specific item column (and not all of the columns).
Definition at line 1800 of file themedelegate.cpp.
◆ hitRow()
const Theme::Row * ThemeDelegate::hitRow | ( | ) | const |
Returns the theme row that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function. This function may also return a null row when hitTest() returned true. This means that the item was globally hit but no row was exactly hit (the user probably hit the margin instead).
Definition at line 1815 of file themedelegate.cpp.
◆ hitRowIndex()
int ThemeDelegate::hitRowIndex | ( | ) | const |
Returns the index of the theme row that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitRow() returns a non null value.
Definition at line 1820 of file themedelegate.cpp.
◆ hitRowIsMessageRow()
bool ThemeDelegate::hitRowIsMessageRow | ( | ) | const |
Returns true if the hitRow() is a message row, false otherwise.
The result of this function has a meaning only if hitRow() returns a non zero result.
Definition at line 1830 of file themedelegate.cpp.
◆ hitRowRect()
QRect ThemeDelegate::hitRowRect | ( | ) | const |
Returns the rectangle of the row that was reported as hit by the previous call to hitTest().
The result of this function is valid only if hitTest() returned true and only within the same calling function. The result of this function is also invalid if hitRow() returns 0.
Definition at line 1825 of file themedelegate.cpp.
◆ hitTest()
Performs a hit test on the specified viewport point.
Returns true if the point hit something and false otherwise. When the hit test is successful then the hitIndex(), hitItem(), hitColumn(), hitRow(), and hitContentItem() function will return information about the item that was effectively hit. If exact is set to true then hitTest() will return true only if the viewportPoint is exactly over an item. If exact is set to false then the hitTest() function will do its best to find the closest object to be actually "hit": this is useful, for example, in drag and drop operations.
Definition at line 1261 of file themedelegate.cpp.
◆ itemFromIndex()
|
protectedpure virtual |
Returns the Item for the specified model index.
Pure virtual: must be reimplemented by derived classes.
◆ paint()
|
overrideprotectedvirtual |
Reimplemented from QStyledItemDelegate.
Reimplemented from QStyledItemDelegate.
Definition at line 569 of file themedelegate.cpp.
◆ setTheme()
Definition at line 45 of file themedelegate.cpp.
◆ sizeHint()
|
overrideprotectedvirtual |
Reimplemented from QStyledItemDelegate.
Reimplemented from QStyledItemDelegate.
Definition at line 1900 of file themedelegate.cpp.
◆ sizeHintForItemTypeAndColumn()
QSize ThemeDelegate::sizeHintForItemTypeAndColumn | ( | Item::Type | type, |
int | column, | ||
const Item * | item = nullptr ) const |
Returns a heuristic sizeHint() for the specified item type and column.
The hint is based on the contents of the theme (and not of any message or group header).
Definition at line 1850 of file themedelegate.cpp.
◆ theme()
Definition at line 1957 of file themedelegate.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.