• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KateCompletionDelegate Class Reference

#include <katecompletiondelegate.h>

Inheritance diagram for KateCompletionDelegate:
Inheritance graph
[legend]

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

KateCompletionDelegate::KateCompletionDelegate ( ExpandingWidgetModel *  model,
KateCompletionWidget *  parent 
)
explicit

Definition at line 39 of file katecompletiondelegate.cpp.

Member Function Documentation

void KateCompletionDelegate::adjustStyle ( const QModelIndex &  index,
QStyleOptionViewItem &  option 
) const
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.

QList< QTextLayout::FormatRange > KateCompletionDelegate::createHighlighting ( const QModelIndex &  index,
QStyleOptionViewItem &  option 
) const
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.

void KateCompletionDelegate::heightChanged ( ) const
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

QList<int> KateCompletionDelegate::m_cachedColumnStarts
mutableprotected

Definition at line 36 of file katecompletiondelegate.h.

int KateCompletionDelegate::m_cachedRow
mutableprotected

Definition at line 35 of file katecompletiondelegate.h.


The documentation for this class was generated from the following files:
  • katecompletiondelegate.h
  • katecompletiondelegate.cpp
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.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal