gui::ImageWidget Class Reference

#include <imagewidget.h>

List of all members.

Public Member Functions

 ImageWidget (const QPixmap *p, QColor bgColor, QWidget *parent)
virtual ~ImageWidget ()

Protected Member Functions

virtual void paintEvent (QPaintEvent *e)

Private Attributes

const QPixmap * img

Detailed Description

Simple widget, that will show image in it Will not allow to resize itself to be smaller than the image


Constructor & Destructor Documentation

gui::ImageWidget::ImageWidget ( const QPixmap *  p,
QColor  bgColor,
QWidget *  parent 
)

Constructor of ImageWidget

Parameters:
p pixmap to show in the widget
bgColor background color used to paint areas outside of image
parent parent widget

References img.

gui::ImageWidget::~ImageWidget (  )  [virtual]

destructor


Member Function Documentation

void gui::ImageWidget::paintEvent ( QPaintEvent *  e  )  [protected, virtual]

event handler called when image is to be repainted

References img.


Member Data Documentation

const QPixmap* gui::ImageWidget::img [private]

Image that is shown in the widget

Referenced by ImageWidget(), and paintEvent().


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