Kate
expandingdelegate.h
Go to the documentation of this file.
51 virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
60 virtual void drawDisplay ( QPainter * painter, const QStyleOptionViewItem & option, const QRect & rect, const QString & text ) const;
62 virtual bool editorEvent ( QEvent * event, QAbstractItemModel * model, const QStyleOptionViewItem & option, const QModelIndex & index );
63 virtual void drawBackground ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;
64 virtual void drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const;
66 virtual QList<QTextLayout::FormatRange> createHighlighting(const QModelIndex& index, QStyleOptionViewItem& option) const;
73 QList<QTextLayout::FormatRange> highlightingFromVariantList(const QList<QVariant>& customHighlights) const;
81 mutable int m_currentColumnStart; //Text-offset for custom highlighting, will be applied to m_cachedHighlights(Only highlights starting after this will be used). Shoult be zero of the highlighting is not taken from kate.
virtual void adjustStyle(const QModelIndex &index, QStyleOptionViewItem &option) const
Definition: expandingdelegate.cpp:140
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: expandingdelegate.cpp:73
QList< int > m_currentColumnStarts
Definition: expandingdelegate.h:82
ExpandingDelegate(ExpandingWidgetModel *model, QObject *parent=0L)
Definition: expandingdelegate.cpp:34
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: expandingdelegate.cpp:125
virtual void heightChanged() const
Definition: expandingdelegate.cpp:295
void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const
virtual void drawDecoration(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QPixmap &pixmap) const
Definition: expandingdelegate.cpp:277
virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
Definition: expandingdelegate.cpp:298
Handles all of the work of rendering the text (used for the views and printing)
Definition: katerenderer.h:50
This is the code completion's main widget, and also contains the core interface logic.
Definition: katecompletionwidget.h:55
virtual QList< QTextLayout::FormatRange > createHighlighting(const QModelIndex &index, QStyleOptionViewItem &option) const
Definition: expandingdelegate.cpp:115
void adjustRect(QRect &rect) const
Definition: expandingdelegate.cpp:146
virtual void drawDisplay(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const
Definition: expandingdelegate.cpp:158
QSize basicSizeHint(const QModelIndex &index) const
Definition: expandingdelegate.cpp:121
QList< QTextLayout::FormatRange > highlightingFromVariantList(const QList< QVariant > &customHighlights) const
Creates a list of FormatRanges as should be returned by createHighlighting from a list of QVariants a...
Definition: expandingdelegate.cpp:314
Definition: katedocument.h:74
Qt::Alignment m_cachedAlignment
Definition: expandingdelegate.h:85
This is a delegate that cares, together with ExpandingWidgetModel, about embedded widgets in tree-vie...
Definition: expandingdelegate.h:42
virtual void drawBackground(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: expandingdelegate.cpp:282
QList< QTextLayout::FormatRange > m_cachedHighlights
Definition: expandingdelegate.h:83
Cares about expanding/un-expanding items in a tree-view together with ExpandingDelegate.
Definition: expandingwidgetmodel.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.