KDEUI
kxyselector.cpp
Go to the documentation of this file.
86 kWarning() << "KXYSelector::setRange invalid range: " << _maxX << " == " << _minX << " (for X) ";
90 kWarning() << "KXYSelector::setRange invalid range: " << _maxY << " == " << _minY << " (for Y) ";
KXYSelector(QWidget *parent=0)
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions...
Definition: kxyselector.cpp:61
bool end()
virtual void mouseMoveEvent(QMouseEvent *e)
Definition: kxyselector.cpp:183
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
void setRange(int minX, int minY, int maxX, int maxY)
Sets the range of possible values.
Definition: kxyselector.cpp:83
void setValues(int xPos, int yPos)
Sets the current values in horizontal and vertical direction.
Definition: kxyselector.cpp:114
void update()
int x() const
int y() const
int yValue() const
void initFrom(const QWidget *widget)
int width() const
virtual void mousePressEvent(QMouseEvent *e)
Definition: kxyselector.cpp:178
Qt::Orientation orientation() const
void setPen(const QColor &color)
void drawEllipse(const QRectF &rectangle)
QRect rect() const
QRect adjusted(int dx1, int dy1, int dx2, int dy2) const
int delta() const
void valueChanged(int x, int y)
This signal is emitted whenever the user chooses a value, e.g.
int xValue() const
KXYSelector is the base class for other widgets which provides the ability to choose from a two-dimen...
Definition: kxyselector.h:39
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setMarkerColor(const QColor &col)
Sets the color used to draw the marker.
Definition: kxyselector.cpp:145
const QPoint & pos() const
virtual QSize minimumSizeHint() const
Reimplemented to give the widget a minimum size.
Definition: kxyselector.cpp:156
void valuesFromPosition(int x, int y, int &xVal, int &yVal) const
Converts a pixel position to its corresponding values.
Definition: kxyselector.cpp:203
bool begin(QPaintDevice *device)
virtual void drawMarker(QPainter *p, int xp, int yp)
Override this function to draw the marker which indicates the currently selected value pair...
Definition: kxyselector.cpp:245
virtual void drawContents(QPainter *)
Override this function to draw the contents of the widget.
Definition: kxyselector.cpp:241
int height() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.