libyui-qt
Loading...
Searching...
No Matches
YQWidgetCaption Class Reference

#include <YQWidgetCaption.h>

Inheritance diagram for YQWidgetCaption:
Collaboration diagram for YQWidgetCaption:

Public Member Functions

 YQWidgetCaption (QWidget *parent, const std::string &text)
 
 YQWidgetCaption (QWidget *parent, const QString &text)
 
virtual ~YQWidgetCaption ()
 
virtual void setText (const std::string &newText)
 
virtual void setText (const QString &newText)
 

Detailed Description

Helper class for captions (labels) above a widget: Takes care of hiding itself when its text is empty and showing when its text becomes non-empty.

Constructor & Destructor Documentation

◆ YQWidgetCaption()

YQWidgetCaption::YQWidgetCaption ( QWidget *  parent,
const std::string &  text 
)

Constuctors.

If the text is empty, the widget will be created, but hidden right away. It can later be made visible again with setText() with a non-empty text.

◆ ~YQWidgetCaption()

YQWidgetCaption::~YQWidgetCaption ( )
virtual

Destructor.

Member Function Documentation

◆ setText()

virtual void YQWidgetCaption::setText ( const std::string &  newText)
virtual

Change the text and handle visibility: If the new text is empty, hide this widget. If the new text is non-empty, show this widget.


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