libyui-qt  2.46.13
YQTextBrowser Class Reference

Helper class - needed to have the benefits of both QVBox as the base class for YQRichText so uniform margins can be implemented (outside, not inside the scroll window as QTextBrowser normally does it) and QTextBrowser's featurs (enable hyperlinks) without removing the text each time the user clicks. More...

#include <YQRichText.h>

Inheritance diagram for YQTextBrowser:
Collaboration diagram for YQTextBrowser:

Public Slots

virtual void setSource (const QUrl &name)
 Get the document pointed to by a hyperlink. More...
 

Public Member Functions

 YQTextBrowser (QWidget *parent=0)
 Constructor.
 

Detailed Description

Helper class - needed to have the benefits of both QVBox as the base class for YQRichText so uniform margins can be implemented (outside, not inside the scroll window as QTextBrowser normally does it) and QTextBrowser's featurs (enable hyperlinks) without removing the text each time the user clicks.

This class is required only to overwrite setSource().

Definition at line 156 of file YQRichText.h.

Member Function Documentation

void YQTextBrowser::setSource ( const QUrl &  name)
virtualslot

Get the document pointed to by a hyperlink.

Reimplemented from QTextBrowser to avoid having an empty text each time the user clicks on a hyperlink.

Definition at line 222 of file YQRichText.cc.


The documentation for this class was generated from the following files: