26 #define YUILogComponent "qt-ui"
27 #include <yui/YUILog.h>
29 #include "YQWidgetCaption.h"
34 const std::string & text )
35 : QLabel( fromUTF8( text ), parent )
37 setTextFormat( Qt::PlainText );
38 handleVisibility( text );
43 : QLabel( text, parent )
45 setTextFormat( Qt::PlainText );
46 handleVisibility( text );
64 QLabel::setText( newText );
65 handleVisibility( newText.isEmpty() );
69 void YQWidgetCaption::handleVisibility(
const std::string & text )
71 handleVisibility( text.empty() );
75 void YQWidgetCaption::handleVisibility(
const QString & text )
77 handleVisibility( text.isEmpty() );
81 void YQWidgetCaption::handleVisibility(
bool textIsEmpty )
96 #include "YQWidgetCaption.moc"