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

Kate

Public Member Functions | Protected Member Functions | Protected Attributes

KateCompletionDelegate Class Reference

#include <katecompletiondelegate.h>

Inheritance diagram for KateCompletionDelegate:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KateCompletionDelegate (ExpandingWidgetModel *model, KateCompletionWidget *parent)
KateDocument * document () const
KateRenderer * renderer () const
KateCompletionWidget * widget () 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 Attributes

QList< int > m_cachedColumnStarts
int m_cachedRow

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 [protected, virtual]

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 [protected, virtual]

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 [protected, virtual]

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 [mutable, protected]

Definition at line 36 of file katecompletiondelegate.h.

int KateCompletionDelegate::m_cachedRow [mutable, protected]

Definition at line 35 of file katecompletiondelegate.h.


The documentation for this class was generated from the following files:
  • katecompletiondelegate.h
  • katecompletiondelegate.cpp

Kate

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal