GradientEditor Class Reference
#include <gradienteditor.h>
List of all members.
Detailed Description
The gradienteditor class is a alpha
ShadeWidget with a range label.
Constructor & Destructor Documentation
GradientEditor::GradientEditor |
( |
QWidget * |
parent |
) |
|
Constructor that creates the color editor.
- Returns:
- The pointer to the created color editor.
Member Function Documentation
void GradientEditor::setGradientStops |
( |
const QGradientStops & |
stops |
) |
|
Sets the gradient stops position and color from the given stops.
- Parameters:
-
| stops | are the gradient stops which should be set. |
QRgb * GradientEditor::getColorsPtr |
( |
|
) |
|
- Returns:
- The pointer to the texture.
void GradientEditor::updateColorTexture |
( |
|
) |
|
Updates the texture with the color currently set in ShadeWidgets.
void GradientEditor::setGradientEditorRangeLabel |
( |
float |
min = 0 , |
|
|
float |
max = 1 | |
|
) |
| | |
Sets the left and right label of the color editor.
- Parameters:
-
| min | is value which should be displayed at the left label. |
| max | is value which should be displayed at the right label. |
void GradientEditor::pointsUpdated |
( |
|
) |
[slot] |
Updates the gradient stops position and color from the currently set points. Sets this gradient points at the alpha ShadeWidget and emits a gradientStopsChanged signal.
void GradientEditor::colorDialog |
( |
int |
index |
) |
[slot] |
Creates a color dialog with which a new color can be set.
- Parameters:
-
| index | is the index of the point for which the color should be changed. |
void GradientEditor::moveColorsWithAlpha |
( |
int |
index, |
|
|
qreal |
newXPos | |
|
) |
| | [slot] |
Moves the color with the corresponding alpha point.
- Parameters:
-
| index | is the index of the color which should be moved. |
| newXPos | is the new x position to which the corresponding color should be moved. |
void GradientEditor::newColorPoints |
( |
int |
index, |
|
|
qreal |
xPos | |
|
) |
| | [slot] |
Creates the color for the corresponding alpha point.
- Parameters:
-
| index | is the index where the color should be saved. |
| xPos | is the x position where the color should be created. |
void GradientEditor::deleteColorPoints |
( |
int |
index |
) |
[slot] |
Deletes the color of the corresponding alpha point.
- Parameters:
-
| index | is the index where the color should be deleted. |
void GradientEditor::gradientStopsChanged |
( |
const QGradientStops & |
stops, |
|
|
GradientEditor * |
editor | |
|
) |
| | [signal] |
A signal that is send on change of the gradient stops.
- Parameters:
-
| stops | are the gradient stops which changed. |
| editor | is the color editor for whom the stops changed. |
void GradientEditor::setEnabledSignal |
( |
bool |
enabled |
) |
[signal] |
A signal that is send on enabling/disabling a draw group.
- Parameters:
-
| enabled | is the state which should be set for the ShadeWidget. |
void GradientEditor::resizeEvent |
( |
QResizeEvent * |
event |
) |
[protected] |
The documentation for this class was generated from the following files: