class KXYSelector |
|
|
KXYSelector is the base class for other widgets which provides the ability to choose from a two-dimensional range of values. The currently chosen value is indicated by a cross. An example is the KHSSelector which allows to choose from a range of colors, and which is used in KColorDialog. A custom drawing routine for the widget surface has to be provided by the subclass. |
|
Constructs a two-dimensional selector widget which has a value range of [0..100] in both directions. |
|
|
Returns the rectangle on which subclasses should draw. |
|
Override this function to draw the contents of the widget. The default implementation does nothing. Draw within contentsRect() only. |
|
Override this function to draw the marker which indicates the currently selected value pair. |
|
Reimplemented to give the widget a minimum size |
|
|
|
|
Sets the color used to draw the marker col - the color |
|
Sets the range of possible values. |
|
Sets the current values in horizontal and vertical direction. xPos - the horizontal value yPos - the vertical value |
|
Sets the current horizontal value xPos - the horizontal value |
|
Sets the current vertical value yPos - the vertical value |
|
This signal is emitted whenever the user chooses a value, e.g. by clicking with the mouse on the widget. |
|
Converts a pixel position to its corresponding values. |
|
|
Returns the current value in horizontal direction. |
|
Returns the current value in vertical direction. |