ImageWidget adds additional functionality to a standard widget such as obtaining mouse click events and easy repaint. More...
#include <image_widget.h>
Signals | |
void | clicked (int x, int y, int button) |
void | mouseXY (int x, int y) |
Public Member Functions | |
ImageWidget (QWidget *parent) | |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | reduceImageSize (int factor) |
Public Attributes | |
QImage * | img |
ImageWidget adds additional functionality to a standard widget such as obtaining mouse click events and easy repaint.
Definition at line 30 of file image_widget.h.
color_table::ImageWidget::ImageWidget | ( | QWidget * | parent | ) |
Definition at line 24 of file image_widget.cpp.
void color_table::ImageWidget::clicked | ( | int | x, |
int | y, | ||
int | button | ||
) | [signal] |
void color_table::ImageWidget::mouseMoveEvent | ( | QMouseEvent * | event | ) |
Definition at line 49 of file image_widget.cpp.
void color_table::ImageWidget::mousePressEvent | ( | QMouseEvent * | event | ) |
Definition at line 42 of file image_widget.cpp.
void color_table::ImageWidget::mouseXY | ( | int | x, |
int | y | ||
) | [signal] |
void color_table::ImageWidget::paintEvent | ( | QPaintEvent * | event | ) |
Definition at line 34 of file image_widget.cpp.
void color_table::ImageWidget::reduceImageSize | ( | int | factor | ) |
Definition at line 29 of file image_widget.cpp.
QImage* color_table::ImageWidget::img |
Definition at line 41 of file image_widget.h.