◆ DPointSelect()
Digikam::DPointSelect::DPointSelect |
( |
QWidget *const |
parent | ) |
|
|
explicit |
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions.
◆ ~DPointSelect()
Digikam::DPointSelect::~DPointSelect |
( |
| ) |
|
|
override |
◆ contentsRect()
QRect Digikam::DPointSelect::contentsRect |
( |
| ) |
const |
◆ drawContents()
virtual void Digikam::DPointSelect::drawContents |
( |
QPainter * |
| ) |
|
|
inlineprotectedvirtual |
◆ drawMarker()
void Digikam::DPointSelect::drawMarker |
( |
QPainter * |
p, |
|
|
int |
xp, |
|
|
int |
yp |
|
) |
| |
|
protectedvirtual |
Override this function to draw the marker which indicates the currently selected value pair.
Referenced by paintEvent().
◆ minimumSizeHint()
QSize Digikam::DPointSelect::minimumSizeHint |
( |
| ) |
const |
|
override |
Reimplemented to give the widget a minimum size
◆ mouseMoveEvent()
void Digikam::DPointSelect::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mousePressEvent()
void Digikam::DPointSelect::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ paintEvent()
void Digikam::DPointSelect::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
overrideprotected |
◆ setMarkerColor()
void Digikam::DPointSelect::setMarkerColor |
( |
const QColor & |
col | ) |
|
Sets the color used to draw the marker
- Parameters
-
◆ setRange()
void Digikam::DPointSelect::setRange |
( |
int |
minX, |
|
|
int |
minY, |
|
|
int |
maxX, |
|
|
int |
maxY |
|
) |
| |
◆ setValues()
void Digikam::DPointSelect::setValues |
( |
int |
xPos, |
|
|
int |
yPos |
|
) |
| |
◆ setXValue()
void Digikam::DPointSelect::setXValue |
( |
int |
xPos | ) |
|
Sets the current horizontal value
- Parameters
-
References setValues().
◆ setYValue()
void Digikam::DPointSelect::setYValue |
( |
int |
yPos | ) |
|
Sets the current vertical value
- Parameters
-
References setValues().
◆ valueChanged
void Digikam::DPointSelect::valueChanged |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
signal |
This signal is emitted whenever the user chooses a value, e.g. by clicking with the mouse on the widget.
Referenced by mouseMoveEvent(), and wheelEvent().
◆ valuesFromPosition()
void Digikam::DPointSelect::valuesFromPosition |
( |
int |
x, |
|
|
int |
y, |
|
|
int & |
xVal, |
|
|
int & |
yVal |
|
) |
| const |
|
protected |
Converts a pixel position to its corresponding values.
Referenced by mouseMoveEvent().
◆ wheelEvent()
void Digikam::DPointSelect::wheelEvent |
( |
QWheelEvent * |
e | ) |
|
|
overrideprotected |
◆ xValue()
int Digikam::DPointSelect::xValue |
( |
| ) |
const |
- Returns
- the current value in horizontal direction.
◆ yValue()
int Digikam::DPointSelect::yValue |
( |
| ) |
const |
- Returns
- the current value in vertical direction.
◆ Private
◆ xValue
int Digikam::DPointSelect::xValue |
|
readwrite |
◆ yValue
int Digikam::DPointSelect::yValue |
|
readwrite |
The documentation for this class was generated from the following files: