libyui-qt  2.49.2
YQLogView Class Reference
Inheritance diagram for YQLogView:
Collaboration diagram for YQLogView:

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
 

Detailed Description

Definition at line 39 of file YQLogView.h.

Member Function Documentation

◆ displayLogText()

void YQLogView::displayLogText ( const std::string &  text)
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.

◆ preferredHeight()

int YQLogView::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 144 of file YQLogView.cc.

◆ preferredWidth()

int YQLogView::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 137 of file YQLogView.cc.

◆ setEnabled()

void YQLogView::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 128 of file YQLogView.cc.

◆ setLabel()

void YQLogView::setLabel ( const std::string &  label)
virtual

Set the label (the caption above the log text).

Reimplemented from YLogView.

Definition at line 119 of file YQLogView.cc.

Here is the call graph for this function:

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 172 of file YQLogView.cc.


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