32 #include <yui/YImage.h>
36 class YQImage :
public QLabel,
public YImage
48 const std::string & imageFileName,
49 bool animated =
false );
61 virtual void setImage(
const std::string & imageFileName,
bool animated =
false );
94 virtual void setSize(
int newWidth,
int newHeight );
virtual void setImage(const std::string &imageFileName, bool animated=false)
Set and display a new image.
virtual int preferredHeight()
Preferred height of the widget.
virtual void setAutoScale(bool autoScale=true)
Make the image fit into the available space.
YQImage(YWidget *parent, const std::string &imageFileName, bool animated=false)
Constructor.
virtual ~YQImage()
Destructor.
virtual void setEnabled(bool enabled)
if false, the image will be displayed in gray
virtual int preferredWidth()
Preferred width of the widget.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.