#include <imagewidget.h>
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 |
Simple widget, that will show image in it Will not allow to resize itself to be smaller than the image
| gui::ImageWidget::ImageWidget | ( | const QPixmap * | p, | |
| QColor | bgColor, | |||
| QWidget * | parent | |||
| ) |
Constructor of ImageWidget
| 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
| void gui::ImageWidget::paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
event handler called when image is to be repainted
References img.
const QPixmap* gui::ImageWidget::img [private] |
Image that is shown in the widget
Referenced by ImageWidget(), and paintEvent().