1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
27 class YQLabel : public QLabel, public YLabel
36 YQLabel( YWidget * parent,
38 bool isHeading = false,
39 bool isOutputField = false );
47 * Set the text the widget displays.
49 * Reimplemented from YLabel.
51 virtual void setText( const string & newText );
54 * Switch bold font on or off.
56 * Reimplemented from YLabel.
58 virtual void setUseBoldFont( bool bold );
61 * Set enabled / disabled state.
63 * Reimplemented from YWidget.
65 virtual void setEnabled( bool enabled );
68 * Preferred width of the widget.
70 * Reimplemented from YWidget.
72 virtual int preferredWidth();
75 * Preferred height of the widget.
77 * Reimplemented from YWidget.
79 virtual int preferredHeight();
82 * Set the new size of the widget.
84 * Reimplemented from YWidget.
86 virtual void setSize( int newWidth, int newHeight );