org.kde.koala

Class KTextBrowser

public class KTextBrowser extends QTextBrowser

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. \image html ktextbrowser.png "KDE Text Browser" See KTextBrowserSignals for signals emitted by KTextBrowser

Author: Espen Sand (espensa@online.no)

UNKNOWN: Extended QTextBrowser.

Constructor Summary
protected KTextBrowser(Class dummy)
KTextBrowser(QWidget parent, String name, boolean notifyClick)
Constructor.
KTextBrowser(QWidget parent, String name)
KTextBrowser(QWidget parent)
KTextBrowser()
Method Summary
StringclassName()
protected voidcontentsWheelEvent(QWheelEvent e)
Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll)
protected QPopupMenucreatePopupMenu(QPoint pos)
Re-implemented for internal reasons.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisNotifyClick()
Returns whether a click on a link should be handled internally or if a signal should be emitted.
protected voidkeyPressEvent(QKeyEvent e)
Makes sure Key_Escape is ignored
QMetaObjectmetaObject()
voidsetNotifyClick(boolean notifyClick)
Decide whether a click on a link should be handled internally or if a signal should be emitted.
voidsetSource(String name)
Reimplemented to NOT set the source but to do the special handling.
protected voidviewportMouseMoveEvent(QMouseEvent e)
Make sure we use our own hand cursor

Constructor Detail

KTextBrowser

protected KTextBrowser(Class dummy)

KTextBrowser

public KTextBrowser(QWidget parent, String name, boolean notifyClick)
Constructor.

Parameters: parent Parent of the widget. name Widget name. notifyClick true causes signals to be emitted.

UNKNOWN: Constructor.

KTextBrowser

public KTextBrowser(QWidget parent, String name)

KTextBrowser

public KTextBrowser(QWidget parent)

KTextBrowser

public KTextBrowser()

Method Detail

className

public String className()

contentsWheelEvent

protected void contentsWheelEvent(QWheelEvent e)
Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll)

UNKNOWN: Reimplemented to support Qt2 behavior (Ctrl-Wheel = fast scroll)

createPopupMenu

protected QPopupMenu createPopupMenu(QPoint pos)
Re-implemented for internal reasons. API not affected. See QLineEdit.createPopupMenu().

UNKNOWN: Re-implemented for internal reasons.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isNotifyClick

public boolean isNotifyClick()
Returns whether a click on a link should be handled internally or if a signal should be emitted.

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

keyPressEvent

protected void keyPressEvent(QKeyEvent e)
Makes sure Key_Escape is ignored

UNKNOWN: Makes sure Key_Escape is ignored

metaObject

public QMetaObject metaObject()

setNotifyClick

public void setNotifyClick(boolean notifyClick)
Decide whether a click on a link should be handled internally or if a signal should be emitted.

Parameters: notifyClick true causes signals to be emitted.

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

setSource

public void setSource(String name)
Reimplemented to NOT set the source but to do the special handling. Do not call.

UNKNOWN: Reimplemented to NOT set the source but to do the special handling.

viewportMouseMoveEvent

protected void viewportMouseMoveEvent(QMouseEvent e)
Make sure we use our own hand cursor

UNKNOWN: Make sure we use our own hand cursor