libyui-qt
2.43.5
|
Public Member Functions | |
YQRichText (YWidget *parent, const std::string &text, bool plainTextMode=false) | |
virtual | ~YQRichText () |
virtual void | setValue (const std::string &newValue) |
virtual void | setPlainTextMode (bool on=true) |
virtual void | setAutoScrollDown (bool on=true) |
virtual int | preferredWidth () |
virtual int | preferredHeight () |
virtual void | setSize (int newWidth, int newHeight) |
virtual void | setEnabled (bool enabled) |
virtual bool | setKeyboardFocus () |
virtual bool | eventFilter (QObject *obj, QEvent *ev) |
bool | haveHyperLinks () |
Protected Slots | |
void | linkClicked (const QUrl &url) |
Protected Attributes | |
YQTextBrowser * | _textBrowser |
Definition at line 38 of file YQRichText.h.
YQRichText::YQRichText | ( | YWidget * | parent, |
const std::string & | text, | ||
bool | plainTextMode = false |
||
) |
YQRichText::~YQRichText | ( | ) | [virtual] |
Destructor.
Definition at line 93 of file YQRichText.cc.
bool YQRichText::eventFilter | ( | QObject * | obj, |
QEvent * | ev | ||
) | [virtual] |
Event filter.
Reimplemented from QWidget.
Definition at line 158 of file YQRichText.cc.
bool YQRichText::haveHyperLinks | ( | ) |
Returns 'true' if the current text of this RichText widget contains hyperlinks.
Definition at line 182 of file YQRichText.cc.
void YQRichText::linkClicked | ( | const QUrl & | url | ) | [protected, slot] |
Notification that a hyperlink is clicked.
Definition at line 151 of file YQRichText.cc.
int YQRichText::preferredHeight | ( | ) | [virtual] |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 197 of file YQRichText.cc.
int YQRichText::preferredWidth | ( | ) | [virtual] |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 191 of file YQRichText.cc.
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 142 of file YQRichText.cc.
void YQRichText::setEnabled | ( | bool | enabled | ) | [virtual] |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 209 of file YQRichText.cc.
bool YQRichText::setKeyboardFocus | ( | ) | [virtual] |
Accept the keyboard focus.
Reimplemented from YWidget.
Definition at line 216 of file YQRichText.cc.
void YQRichText::setPlainTextMode | ( | bool | on = true | ) | [virtual] |
Set this RichText widget's "plain text" mode on or off.
Reimplemented from YRichText.
Definition at line 131 of file YQRichText.cc.
void YQRichText::setSize | ( | int | newWidth, |
int | newHeight | ||
) | [virtual] |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 203 of file YQRichText.cc.
void YQRichText::setValue | ( | const std::string & | newValue | ) | [virtual] |
Change the text content of the RichText widget.
Reimplemented from YRichText.
Definition at line 99 of file YQRichText.cc.