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

KTextEditor

  • KTextEditor
  • CodeCompletionModel2
Public Member Functions
KTextEditor::CodeCompletionModel2 Class Reference

#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

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:
documentthe document to insert the completion into
wordthe Range that the completions are based on (what the user entered so far)
indexidentifies 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
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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.5
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