# class KTextEditor.CodeCompletionModel

###

Table of contents
Modules
ktexteditor Classes
All Classes

Module | ktexteditor
Namespace | ktexteditor
Class | KTextEditor.CodeCompletionModel
Inherits | QAbstractItemModel

An item model for providing code completion, and meta information for enhanced presentation.

To do: write documentation

Author Hamish Rodda <rodda@kde.org>

### enums

- Columns = { Prefix, Icon, Scope, Name, Arguments, Postfix }
- CompletionProperty = { NoProperty, FirstProperty, Public, Protected, Private, Static, Const, Namespace, Class, Struct, Union, Function, Variable, Enum, Template, TypeAlias, Virtual, Override, Inline, Friend, Signal, Slot, LocalScope, NamespaceScope, GlobalScope, LastProperty }
- ExtraItemDataRoles = { CompletionRole, ScopeIndex, MatchQuality, SetMatchContext, HighlightingMethod, CustomHighlight, InheritanceDepth, IsExpandable, ExpandingWidget, ItemSelected, ArgumentHintDepth, BestMatchesCount, AccessibilityNext, AccessibilityPrevious, AccessibilityAccept }
- HighlightMethod = { NoHighlighting, InternalHighlighting, CustomHighlighting }
- InvocationType = { AutomaticInvocation, UserInvocation, ManualInvocation }

enum details

### methods

- CodeCompletionModel (parent)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  parent | QObject |

- columnCount (parent)

  returns (int)

  Argument | Type | Default
  --- | --- | ---
  parent | QModelIndex | QModelIndex ()

- completionInvoked (view, range, invocationType)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  view | KTextEditor.View |
  range | KTextEditor.Range |
  invocationType | KTextEditor.CodeCompletionModel.InvocationType |

- executeCompletionItem (document, word, row)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  document | KTextEditor.Document |
  word | KTextEditor.Range |
  row | int |

- index (row, column, parent)

  returns (QModelIndex)

  Argument | Type | Default
  --- | --- | ---
  row | int |
  column | int |
  parent | QModelIndex | QModelIndex ()

- itemData (index)

  returns (dict of (int, QVariant))

  Argument | Type | Default
  --- | --- | ---
  index | QModelIndex |

- parent (index)

  returns (QModelIndex)

  Argument | Type | Default
  --- | --- | ---
  index | QModelIndex |

- rowCount (parent)

  returns (int)

  Argument | Type | Default
  --- | --- | ---
  parent | QModelIndex | QModelIndex ()

- setRowCount (rowCount)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  rowCount | int |