class KTextBrowser


Definition#include <ktextbrowser.h>
InheritsQTextBrowser
Annotated List
Files
Globals
Hierarchy
Index
Main

Public Methods

Signals


Detailed Description

An extended QTextBrowser.

By default it will invoke the system mailer or the system browser when a link is activated, or it can emit the signal urlClick() or mailClick() when a link is activated.

 KTextBrowser ( QWidget *parent=0, const char *name=0, bool notifyClick=false )

Constructor.

Parameters:
parentParent of the widget.
nameWidget name.
notifyClicktrue causes signals to be emitted.

KTextBrowser ( void )

Destructor.

void  setNotifyClick ( bool notifyClick )

Decide whether a click on a link should be handled internally or if a signal should be emitted.

Parameters:
notifyClicktrue causes signals to be emitted.

bool  isNotifyClick ()

[const]

Returns whether a click on a link should be handled internally or if a signal should be emitted.

protected: /** Reimplemented to NOT set the source but to do the special handling. Do not call. */ void  setSource (const QString& name)

void  keyPressEvent (QKeyEvent *e)

[virtual]

Makes sure Key_Escape is ignored

void  viewportMouseMoveEvent ( QMouseEvent* e)

[virtual]

Make sure we use our own hand cursor

void  mailClick ( const QString &name, const QString &address )

[signal]

Emitted when a mail link has been activated and the widget has been configured to emit the signal.

Parameters:
nameThe destination name. It is QString::null at the moment.
addressThe destination address.

void  urlClick ( const QString &url )

[signal]

Emitted if mailClick() is not emitted and the widget has been configured to emit the signal.

Parameters:
urlThe destination address.