messagelist
#include "core/themedelegate.h"
#include "core/messageitem.h"
#include "core/groupheaderitem.h"
#include "core/manager.h"
#include "messagecore/utils/stringutil.h"
#include <QStyle>
#include <QPainter>
#include <QFont>
#include <QFontMetrics>
#include <QAbstractItemView>
#include <QPixmap>
#include <QLinearGradient>
#include <KColorScheme>
#include <KGlobalSettings>
#include <KGlobal>
Go to the source code of this file.
Functions | |
static int | cachedFontHeightKey (const QFont &font, const QString &fontKey) |
static QFontMetrics | cachedFontMetrics (const QFont &font) |
static void | compute_bounding_rect_for_boolean_state_icon (bool enabled, Theme::ContentItem *ci, int &left, int top, int &right, QRect &outRect, bool alignOnRight, int iconSize) |
static void | compute_bounding_rect_for_horizontal_spacer (int &left, int top, int &right, int bottom, QRect &outRect, bool alignOnRight) |
static void | compute_bounding_rect_for_left_aligned_elided_text (const QString &text, int &left, int top, int &right, QRect &outRect, Qt::LayoutDirection layoutDir, const QFont &font) |
static void | compute_bounding_rect_for_permanent_icon (Theme::ContentItem *, int &left, int top, int &right, QRect &outRect, bool alignOnRight, int iconSize) |
static void | compute_bounding_rect_for_right_aligned_elided_text (const QString &text, int &left, int top, int &right, QRect &outRect, Qt::LayoutDirection layoutDir, const QFont &font) |
static void | compute_bounding_rect_for_tag_list (const QList< MessageItem::Tag * > &tagList, int &left, int top, int &right, QRect &outRect, bool alignOnRight, int iconSize) |
static void | compute_bounding_rect_for_vertical_line (int &left, int top, int &right, int bottom, QRect &outRect, bool alignOnRight) |
static void | compute_size_hint_for_item (Theme::ContentItem *ci, int &maxh, int &totalw, int iconSize, const Item *item) |
static QSize | compute_size_hint_for_row (const Theme::Row *r, int iconSize, const Item *item) |
static const QPixmap * | get_combined_read_replied_state_icon (MessageItem *messageItem) |
static const QPixmap * | get_encryption_state_icon (MessageItem *messageItem, bool *treatAsEnabled) |
static const QPixmap * | get_read_state_icon (Item *item) |
static const QPixmap * | get_replied_state_icon (MessageItem *messageItem) |
static const QPixmap * | get_signature_state_icon (MessageItem *messageItem, bool *treatAsEnabled) |
static const QPixmap * | get_spam_ham_state_icon (MessageItem *messageItem) |
static const QPixmap * | get_watched_ignored_state_icon (MessageItem *messageItem) |
static void | paint_boolean_state_icon (bool enabled, const QPixmap *pix, Theme::ContentItem *ci, QPainter *painter, int &left, int top, int &right, bool alignOnRight, int iconSize) |
static void | paint_horizontal_spacer (int &left, int, int &right, int, bool alignOnRight) |
static void | paint_left_aligned_elided_text (const QString &text, Theme::ContentItem *ci, QPainter *painter, int &left, int top, int &right, Qt::LayoutDirection layoutDir, const QFont &font) |
static void | paint_permanent_icon (const QPixmap *pix, Theme::ContentItem *, QPainter *painter, int &left, int top, int &right, bool alignOnRight, int iconSize) |
static void | paint_right_aligned_elided_text (const QString &text, Theme::ContentItem *ci, QPainter *painter, int &left, int top, int &right, Qt::LayoutDirection layoutDir, const QFont &font) |
static void | paint_tag_list (const QList< MessageItem::Tag * > &tagList, QPainter *painter, int &left, int top, int &right, bool alignOnRight, int iconSize) |
static void | paint_vertical_line (QPainter *painter, int &left, int top, int &right, int bottom, bool alignOnRight) |
Variables | |
static const int | gGroupHeaderInnerHorizontalMargin = 1 |
static const int | gGroupHeaderInnerVerticalMargin = 1 |
static const int | gGroupHeaderOuterHorizontalMargin = 1 |
static const int | gGroupHeaderOuterVerticalMargin = 1 |
static const int | gHorizontalItemSpacing = 2 |
static const int | gMessageHorizontalMargin = 2 |
static const int | gMessageVerticalMargin = 2 |
Function Documentation
Definition at line 108 of file themedelegate.cpp.
|
static |
Definition at line 95 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 442 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 361 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 182 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 393 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 144 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 478 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 338 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 493 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 529 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 213 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 227 of file themedelegate.cpp.
Definition at line 196 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 287 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 257 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 301 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 310 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 410 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 351 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 159 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 374 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 120 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 456 of file themedelegate.cpp.
|
inlinestatic |
Definition at line 319 of file themedelegate.cpp.
Variable Documentation
|
static |
Definition at line 44 of file themedelegate.cpp.
|
static |
Definition at line 43 of file themedelegate.cpp.
|
static |
Definition at line 42 of file themedelegate.cpp.
|
static |
Definition at line 41 of file themedelegate.cpp.
|
static |
Definition at line 47 of file themedelegate.cpp.
|
static |
Definition at line 46 of file themedelegate.cpp.
|
static |
Definition at line 45 of file themedelegate.cpp.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.