Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::GradientSlider Class Reference

Inherits QSlider.

Public Types

using ColorFunction = AZStd::function< QColor(qreal)>
 
using ToolTipFunction = AZStd::function< QString(qreal)>
 

Public Member Functions

 GradientSlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 
 GradientSlider (QWidget *parent=nullptr)
 
void setColorFunction (ColorFunction colorFunction)
 
void setToolTipFunction (ToolTipFunction toolTipFunction)
 
void updateGradient ()
 
int decimals () const
 
void setDecimals (int decimals)
 
QPoint toolTipOffset () const
 
void setToolTipOffset (const QPoint &toolTipOffset)
 
int toolTipOffsetX () const
 
void setToolTipOffsetX (int toolTipOffsetX)
 
int toolTipOffsetY () const
 
void setToolTipOffsetY (int toolTipOffsetY)
 
bool GetIgnoreWheelEvents () const
 
void SetIgnoreWheelEvents (bool shouldIgnore)
 
QColor colorAt (qreal position) const
 

Protected Member Functions

void resizeEvent (QResizeEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void wheelEvent (QWheelEvent *e) override
 

Properties

int decimals
 
int toolTipOffsetX
 
int toolTipOffsetY
 

Friends

class Slider
 

The documentation for this class was generated from the following file: