Kate
#include <katecompletiondelegate.h>
Public Member Functions | |
KateCompletionDelegate (ExpandingWidgetModel *model, KateCompletionWidget *parent) | |
KateDocument * | document () const |
KateRenderer * | renderer () const |
KateCompletionWidget * | widget () const |
Public Member Functions inherited from ExpandingDelegate | |
ExpandingDelegate (ExpandingWidgetModel *model, QObject *parent=0L) | |
QSize | basicSizeHint (const QModelIndex &index) const |
ExpandingWidgetModel * | model () const |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Protected Member Functions | |
virtual void | adjustStyle (const QModelIndex &index, QStyleOptionViewItem &option) const |
QList< QTextLayout::FormatRange > | createHighlighting (const QModelIndex &index, QStyleOptionViewItem &option) const |
virtual void | heightChanged () const |
Protected Member Functions inherited from ExpandingDelegate | |
void | adjustRect (QRect &rect) 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) |
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 |
Protected Attributes | |
QList< int > | m_cachedColumnStarts |
int | m_cachedRow |
Protected Attributes inherited from ExpandingDelegate | |
QColor | m_backgroundColor |
Qt::Alignment | m_cachedAlignment |
QList< QTextLayout::FormatRange > | m_cachedHighlights |
int | m_currentColumnStart |
QList< int > | m_currentColumnStarts |
QModelIndex | m_currentIndex |
Detailed Description
Definition at line 26 of file katecompletiondelegate.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 39 of file katecompletiondelegate.cpp.
Member Function Documentation
|
protectedvirtual |
- Todo:
- Only do this for the "current" item, for others the model is asked for the match color.
Reimplemented from ExpandingDelegate.
Definition at line 44 of file katecompletiondelegate.cpp.
|
protectedvirtual |
- Todo:
- reset the cache when the model changed
Reimplemented from ExpandingDelegate.
Definition at line 79 of file katecompletiondelegate.cpp.
KateDocument * KateCompletionDelegate::document | ( | ) | const |
Definition at line 69 of file katecompletiondelegate.cpp.
|
protectedvirtual |
Reimplemented from ExpandingDelegate.
Definition at line 74 of file katecompletiondelegate.cpp.
KateRenderer * KateCompletionDelegate::renderer | ( | ) | const |
Definition at line 59 of file katecompletiondelegate.cpp.
KateCompletionWidget * KateCompletionDelegate::widget | ( | ) | const |
Definition at line 64 of file katecompletiondelegate.cpp.
Member Data Documentation
|
mutableprotected |
Definition at line 36 of file katecompletiondelegate.h.
|
mutableprotected |
Definition at line 35 of file katecompletiondelegate.h.
The documentation for this class was generated from the following files:
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.