#include <expandingdelegate.h>
|
void | adjustRect (QRect &rect) const |
|
virtual void | adjustStyle (const QModelIndex &index, QStyleOptionViewItem &option) const |
|
virtual QList
< QTextLayout::FormatRange > | createHighlighting (const QModelIndex &index, QStyleOptionViewItem &option) const |
|
virtual void | drawBackground (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
virtual void | drawDecoration (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QPixmap &pixmap) const |
|
virtual void | drawDisplay (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const |
|
virtual bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
|
virtual void | heightChanged () const |
|
QList< QTextLayout::FormatRange > | highlightingFromVariantList (const QList< QVariant > &customHighlights) const |
|
void | initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) const |
|
virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
This is a delegate that cares, together with ExpandingWidgetModel, about embedded widgets in tree-view.
Definition at line 42 of file expandingdelegate.h.
void ExpandingDelegate::adjustRect |
( |
QRect & |
rect | ) |
const |
|
protected |
void ExpandingDelegate::adjustStyle |
( |
const QModelIndex & |
index, |
|
|
QStyleOptionViewItem & |
option |
|
) |
| const |
|
protectedvirtual |
QSize ExpandingDelegate::basicSizeHint |
( |
const QModelIndex & |
index | ) |
const |
QList< QTextLayout::FormatRange > ExpandingDelegate::createHighlighting |
( |
const QModelIndex & |
index, |
|
|
QStyleOptionViewItem & |
option |
|
) |
| const |
|
protectedvirtual |
void ExpandingDelegate::drawBackground |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protectedvirtual |
void ExpandingDelegate::drawDecoration |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QRect & |
rect, |
|
|
const QPixmap & |
pixmap |
|
) |
| const |
|
protectedvirtual |
void ExpandingDelegate::drawDisplay |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QRect & |
rect, |
|
|
const QString & |
text |
|
) |
| const |
|
protectedvirtual |
For some reason the text-formats seem to be invalid in some way, sometimes
- Todo:
- Fix this properly, it sucks not copying everything over
Definition at line 158 of file expandingdelegate.cpp.
bool ExpandingDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
protectedvirtual |
void ExpandingDelegate::heightChanged |
( |
| ) |
const |
|
protectedvirtual |
QList< QTextLayout::FormatRange > ExpandingDelegate::highlightingFromVariantList |
( |
const QList< QVariant > & |
customHighlights | ) |
const |
|
protected |
void ExpandingDelegate::initStyleOption |
( |
QStyleOptionViewItem * |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protected |
void ExpandingDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
This is a bug workaround for the Qt raster paint engine: It paints over widgets embedded into the viewport when updating due to mouse events
- Todo:
- report to Qt Software
Definition at line 73 of file expandingdelegate.cpp.
QSize ExpandingDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protectedvirtual |
QColor ExpandingDelegate::m_backgroundColor |
|
mutableprotected |
Qt::Alignment ExpandingDelegate::m_cachedAlignment |
|
mutableprotected |
QList<QTextLayout::FormatRange> ExpandingDelegate::m_cachedHighlights |
|
mutableprotected |
int ExpandingDelegate::m_currentColumnStart |
|
mutableprotected |
QList<int> ExpandingDelegate::m_currentColumnStarts |
|
mutableprotected |
QModelIndex ExpandingDelegate::m_currentIndex |
|
mutableprotected |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.