# class KTextEditor.TextHintInterface

### abstract class

Table of contents
Modules
ktexteditor Classes
All Classes

Module | ktexteditor
Namespace | ktexteditor
Class | KTextEditor.TextHintInterface
Inherits |

This is an interface for the KTextEditor.View class.

### methods

- TextHintInterface ()

  returns nothing

- disableTextHints ()

  returns nothing
  pure virtual

  Disable texthints. Per default they are disabled.

- enableTextHints (timeout)

  returns nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  timeout | int |

  enable Texthints. If they are enabled a signal needTextHint is emitted, if the mouse changed the position and a new character is beneath the mouse cursor. The signal is delayed for a certain time, specifiedin the timeout parameter.

- needTextHint (position, text)

  returns nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  position | KTextEditor.Cursor |
  text | QString |

  emit this signal, if a tooltip text is needed for displaying. I you don't want a tooltip to be displayd set text to an emtpy string in a connected slot, otherwise set text to the string you want the editor to display