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 setEnabled(bool enabled)
if false, the image will be displayed in gray
virtual void setImage(const std::string &imageFileName, bool animated=false)
Set and display a new image.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual int preferredWidth()
Preferred width of the widget.
virtual ~YQImage()
Destructor.
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 int preferredHeight()
Preferred height of the widget.