26 #define YUILogComponent "qt-ui" 27 #include <yui/YUILog.h> 29 #include "YQWidgetCaption.h" 38 : QLabel( fromUTF8( text ), parent )
40 setTextFormat( Qt::PlainText );
41 handleVisibility( text );
46 : QLabel( text, parent )
48 setTextFormat( Qt::PlainText );
49 handleVisibility( text );
67 QLabel::setText( newText );
68 handleVisibility( newText.isEmpty() );
72 void YQWidgetCaption::handleVisibility(
const string & text )
74 handleVisibility( text.empty() );
78 void YQWidgetCaption::handleVisibility(
const QString & text )
80 handleVisibility( text.isEmpty() );
84 void YQWidgetCaption::handleVisibility(
bool textIsEmpty )