libyui-qt
2.49.2
|
Public Member Functions | |
YQLogView (YWidget *parent, const std::string &label, int visibleLines, int maxLines) | |
Constructor. | |
virtual | ~YQLogView () |
Destructor. | |
virtual void | setLabel (const std::string &label) |
Set the label (the caption above the log text). More... | |
virtual void | setEnabled (bool enabled) |
Set enabled/disabled state. 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 bool | setKeyboardFocus () |
Accept the keyboard focus. | |
Protected Member Functions | |
virtual void | displayLogText (const std::string &text) |
Display the part of the log text that should be displayed. More... | |
Protected Attributes | |
YQWidgetCaption * | _caption |
MyTextEdit * | _qt_text |
QString | _lastText |
Definition at line 39 of file YQLogView.h.
|
protectedvirtual |
Display the part of the log text that should be displayed.
'text' contains the last 'visibleLines()' lines. This is called whenever the log text changes. Note that the text might also be empty, in which case the displayed log text should be cleared.
Implemented from YLogView.
Definition at line 81 of file YQLogView.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 144 of file YQLogView.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 137 of file YQLogView.cc.
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 128 of file YQLogView.cc.
|
virtual |
Set the label (the caption above the log text).
Reimplemented from YLogView.
Definition at line 119 of file YQLogView.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 172 of file YQLogView.cc.