libyui-qt  2.52.4
YQRichText Class Reference
Inheritance diagram for YQRichText:
Collaboration diagram for YQRichText:

Public Member Functions

 YQRichText (YWidget *parent, const std::string &text, bool plainTextMode=false)
 Constructor.
 
virtual ~YQRichText ()
 Destructor.
 
virtual void setValue (const std::string &newValue) override
 Change the text content of the RichText widget. More...
 
virtual void setPlainTextMode (bool on=true)
 Set this RichText widget's "plain text" mode on or off. More...
 
virtual void setAutoScrollDown (bool on=true)
 Set this RichText widget's "auto scroll down" mode on or off. More...
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
virtual bool setKeyboardFocus ()
 Accept the keyboard focus. More...
 
virtual bool eventFilter (QObject *obj, QEvent *ev)
 Event filter. More...
 
bool haveHyperLinks ()
 Returns 'true' if the current text of this RichText widget contains hyperlinks.
 
virtual std::string vScrollValue () const override
 Get the vertical scrollbar position. More...
 
virtual void setVScrollValue (const std::string &newValue) override
 Set the vertical scrollbar position. More...
 
virtual std::string hScrollValue () const override
 Get the horizontal scrollbar position. More...
 
virtual void setHScrollValue (const std::string &newValue) override
 Set the horizontal scrollbar position. More...
 
virtual void activateLink (const std::string &url)
 Derived classes should implement this, method is used to trigger event like user has clicked link in the RichText.
 

Protected Slots

void linkClicked (const QUrl &url)
 Notification that a hyperlink is clicked.
 

Protected Attributes

YQTextBrowser_textBrowser
 

Detailed Description

Definition at line 39 of file YQRichText.h.

Member Function Documentation

◆ eventFilter()

bool YQRichText::eventFilter ( QObject *  obj,
QEvent *  ev 
)
virtual

Event filter.

Reimplemented from QWidget.

Definition at line 170 of file YQRichText.cc.

Here is the call graph for this function:

◆ hScrollValue()

string YQRichText::hScrollValue ( ) const
overridevirtual

Get the horizontal scrollbar position.

Reimplemented from YRichText.

Definition at line 248 of file YQRichText.cc.

◆ preferredHeight()

int YQRichText::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 209 of file YQRichText.cc.

◆ preferredWidth()

int YQRichText::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 203 of file YQRichText.cc.

◆ setAutoScrollDown()

void YQRichText::setAutoScrollDown ( bool  on = true)
virtual

Set this RichText widget's "auto scroll down" mode on or off.

Reimplemented from YRichText.

Definition at line 148 of file YQRichText.cc.

◆ setEnabled()

void YQRichText::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 221 of file YQRichText.cc.

◆ setHScrollValue()

void YQRichText::setHScrollValue ( const std::string &  newValue)
overridevirtual

Set the horizontal scrollbar position.

Reimplemented from YRichText.

Definition at line 254 of file YQRichText.cc.

◆ setKeyboardFocus()

bool YQRichText::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

Definition at line 228 of file YQRichText.cc.

◆ setPlainTextMode()

void YQRichText::setPlainTextMode ( bool  on = true)
virtual

Set this RichText widget's "plain text" mode on or off.

Reimplemented from YRichText.

Definition at line 137 of file YQRichText.cc.

◆ setSize()

void YQRichText::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 215 of file YQRichText.cc.

◆ setValue()

void YQRichText::setValue ( const std::string &  newValue)
overridevirtual

Change the text content of the RichText widget.

Reimplemented from YRichText.

Definition at line 105 of file YQRichText.cc.

◆ setVScrollValue()

void YQRichText::setVScrollValue ( const std::string &  newValue)
overridevirtual

Set the vertical scrollbar position.

Reimplemented from YRichText.

Definition at line 242 of file YQRichText.cc.

◆ vScrollValue()

string YQRichText::vScrollValue ( ) const
overridevirtual

Get the vertical scrollbar position.

Reimplemented from YRichText.

Definition at line 236 of file YQRichText.cc.


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