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

KTextEditor

  • KTextEditor
  • TextHintInterface
Public Member Functions | List of all members
KTextEditor::TextHintInterface Class Referenceabstract
View Extension Interfaces

#include <texthintinterface.h>

Public Member Functions

 TextHintInterface ()
 
virtual ~TextHintInterface ()
 
virtual void disableTextHints ()=0
 
virtual void enableTextHints (int timeout)=0
 
virtual void needTextHint (const KTextEditor::Cursor &position, QString &text)=0
 

Detailed Description

This is an interface for the KTextEditor::View class.

Definition at line 36 of file texthintinterface.h.

Constructor & Destructor Documentation

TextHintInterface::TextHintInterface ( )

Definition at line 273 of file ktexteditor.cpp.

TextHintInterface::~TextHintInterface ( )
virtual

Definition at line 277 of file ktexteditor.cpp.

Member Function Documentation

virtual void KTextEditor::TextHintInterface::disableTextHints ( )
pure virtual

Disable texthints.

Per default they are disabled.

virtual void KTextEditor::TextHintInterface::enableTextHints ( int  timeout)
pure virtual

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.

virtual void KTextEditor::TextHintInterface::needTextHint ( const KTextEditor::Cursor &  position,
QString &  text 
)
pure virtual

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


The documentation for this class was generated from the following files:
  • texthintinterface.h
  • ktexteditor.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Jun 24 2014 14:09:17 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

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-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal