• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KTextEditor

KTextEditor::CodeCompletionModel2

KTextEditor::CodeCompletionModel2 Class Reference

You must inherit your completion-model from CodeCompletionModel2 if you want to use a hierarchical structure and want to receive execution-feedback. More...

#include <codecompletionmodel.h>

Inheritance diagram for KTextEditor::CodeCompletionModel2:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 CodeCompletionModel2 (QObject *parent)
virtual void executeCompletionItem2 (Document *document, const Range &word, const QModelIndex &index) const

Detailed Description

You must inherit your completion-model from CodeCompletionModel2 if you want to use a hierarchical structure and want to receive execution-feedback.

See also:
CodeCompletionModel::GroupRole

Definition at line 445 of file codecompletionmodel.h.


Constructor & Destructor Documentation

CodeCompletionModel2::CodeCompletionModel2 ( QObject *  parent  ) 

Definition at line 115 of file codecompletionmodel.cpp.


Member Function Documentation

void CodeCompletionModel2::executeCompletionItem2 ( Document *  document,
const Range &  word,
const QModelIndex &  index 
) const [virtual]

This function is responsible for inserting a selected completion into the document.

The default implementation replaces the text that the completions were based on with the Qt::DisplayRole of the Name column of the given match.

Parameters:
document the document to insert the completion into
word the Range that the completions are based on (what the user entered so far)
index identifies the completion match to insert

Definition at line 119 of file codecompletionmodel.cpp.


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

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Modules
  • 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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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