Relacs  0.9.8
Public Member Functions | Protected Member Functions | List of all members
ScaledImage Class Reference

#include <scaledimage.h>

Inheritance diagram for ScaledImage:
Inheritance graph
[legend]
Collaboration diagram for ScaledImage:
Collaboration graph
[legend]

Public Member Functions

 ScaledImage (QWidget *parent=0)
 
 ScaledImage (const QPixmap &image, QWidget *parent=0)
 
 ScaledImage (const QImage &image, QWidget *parent=0)
 
void setImage (const QPixmap &image)
 
void setImage (const QImage &image)
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event)
 

Detailed Description

A label that displays an image scaled to the maximum available size.

Author
Jan Benda

Constructor & Destructor Documentation

ScaledImage ( QWidget *  parent = 0)

Constructs an empty ScaledImage.

ScaledImage ( const QPixmap &  image,
QWidget *  parent = 0 
)

Constructs an ScaledImage with image image.

References ScaledImage::setImage().

ScaledImage ( const QImage &  image,
QWidget *  parent = 0 
)

Constructs an ScaledImage with image image.

References ScaledImage::setImage().

Member Function Documentation

void setImage ( const QPixmap &  image)

Set the image to be displayed to image.

Referenced by ScaledImage::ScaledImage().

void setImage ( const QImage &  image)

Set the image to be displayed to image.

void resizeEvent ( QResizeEvent *  event)
protectedvirtual

The documentation for this class was generated from the following files: