KWidgetsAddons
kxyselector.cpp
73 qCWarning(KWidgetsAddonsLog) << "KXYSelector::setRange invalid range: " << _maxX << " == " << _minX << " (for X) ";
KXYSelector is the base class for other widgets which provides the ability to choose from a two-dimen...
Definition kxyselector.h:30
virtual void drawContents(QPainter *)
Override this function to draw the contents of the widget.
Definition kxyselector.cpp:230
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:234
void setRange(int minX, int minY, int maxX, int maxY)
Sets the range of possible values.
Definition kxyselector.cpp:70
KXYSelector(QWidget *parent=nullptr)
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions.
Definition kxyselector.cpp:52
void setValues(int xPos, int yPos)
Sets the current values in horizontal and vertical direction.
Definition kxyselector.cpp:100
void setMarkerColor(const QColor &col)
Sets the color used to draw the marker.
Definition kxyselector.cpp:133
void valuesFromPosition(int x, int y, int &xVal, int &yVal) const
Converts a pixel position to its corresponding values.
Definition kxyselector.cpp:188
QSize minimumSizeHint() const override
Reimplemented to give the widget a minimum size.
Definition kxyselector.cpp:144
void valueChanged(int x, int y)
This signal is emitted whenever the user chooses a value, e.g.
QPoint pos() const const
Q_EMITQ_EMIT
bool begin(QPaintDevice *device)
void drawEllipse(const QPoint ¢er, int rx, int ry)
bool end()
void setPen(Qt::PenStyle style)
int x() const const
int y() const const
PM_DefaultFrameWidth
PE_Frame
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const const=0
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
void initFrom(const QWidget *widget)
white
QPoint angleDelta() const const
height
rect
QStyle * style() const const
void update()
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.