KDEUI
kxyselector.h
Go to the documentation of this file.
143 friend class Private;
virtual void drawContents(QPainter *)
Override this function to draw the contents of the widget.
Definition kxyselector.cpp:241
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
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 setMarkerColor(const QColor &col)
Sets the color used to draw the marker.
Definition kxyselector.cpp:145
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
virtual void mouseMoveEvent(QMouseEvent *e)
Definition kxyselector.cpp:183
virtual void mousePressEvent(QMouseEvent *e)
Definition kxyselector.cpp:178
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
void valueChanged(int x, int y)
This signal is emitted whenever the user chooses a value, e.g.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.