class KTextEdit

# class KTextEdit | A KDE'ified QTextEdit. More...
Definition | `#include <ktextedit.h>`
Inherits | QTextEdit (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KTextEdit ( const QString& text, const QString& context = QString::null, QWidget * parent = 0, const char *name = 0 )
- KTextEdit ( QWidget *parent = 0L, const char *name = 0 )
- ~KTextEdit ()
- virtual void setReadOnly (bool readOnly)
- virtual void setPalette ( const QPalette& palette )

#### Protected Methods

- virtual void keyPressEvent ( QKeyEvent * )
- virtual void contentsWheelEvent ( QWheelEvent * )
- virtual void deleteWordBack ()
- virtual void deleteWordForward ()
- virtual void virtual_hook ( int id, void* data )

## Detailed Description

This is just a little subclass of QTextEdit, implementing some standard KDE features, like Cursor auto-hiding, configurable wheelscrolling (fast-scroll or zoom) and deleting of entire words with Ctrl-Backspace or Ctrl-Delete.

Basic rule: whenever you want to use QTextEdit, use KTextEdit!

See also: QTextEdit

KTextEdit ( const QString& text, const QString& context = QString::null, QWidget * parent = 0, const char *name = 0 ) | ### KTextEdit

Constructs a KTextEdit object. See QTextEdit::QTextEdit for details.

KTextEdit ( QWidget *parent = 0L, const char *name = 0 ) | ### KTextEdit

Constructs a KTextEdit object. See QTextEdit::QTextEdit for details.

~KTextEdit () | ### ~KTextEdit

Destroys the KTextEdit object.

void setReadOnly (bool readOnly) | ### setReadOnly

[virtual]

Reimplemented to set a proper "deactivated" background color.

void setPalette ( const QPalette& palette ) | ### setPalette

[virtual]

Reimplemented for tracking custom palettes.

void keyPressEvent ( QKeyEvent * ) | ### keyPressEvent

[protected virtual]

Reimplemented to catch "delete word" key events.

void contentsWheelEvent ( QWheelEvent * ) | ### contentsWheelEvent

[protected virtual]

Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.

void deleteWordBack () | ### deleteWordBack

[protected virtual]

Deletes a word backwards from the current cursor position, if available.

void deleteWordForward () | ### deleteWordForward

[protected virtual]

Deletes a word forwards from the current cursor position, if available.

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

- Author: Carsten Pfeiffer
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.