#include <ColorValidator.h>
Inherits QObject.
Inherited by AzQtComponents::HueSaturationValidator, AzQtComponents::RGBALowRangeValidator, and AzQtComponents::RGBColorValidator.
Signals | |
| void | colorWarning (const QString &message) |
| void | colorAccepted () |
Public Member Functions | |
| ColorValidator (QObject *parent=nullptr) | |
| virtual bool | isValid (const Internal::ColorController *controller)=0 |
| Returns true if the input color is valid, false otherwise. False will trigger adjust to be called. | |
| virtual void | adjust (Internal::ColorController *controller)=0 |
| Returns color adjusted to something acceptable. | |
| virtual void | warn ()=0 |
| Must emit colorWarning when called. | |
| void | acceptColor () |
| Emits the colorAccepted signal. | |
Abstract base class for validating and adjusting colors, and providing warnings. Used by the color picker to validate
|
pure virtual |
Returns color adjusted to something acceptable.
Implemented in AzQtComponents::RGBColorValidator, AzQtComponents::RGBALowRangeValidator, and AzQtComponents::HueSaturationValidator.
|
pure virtual |
Returns true if the input color is valid, false otherwise. False will trigger adjust to be called.
Implemented in AzQtComponents::RGBColorValidator, AzQtComponents::RGBALowRangeValidator, and AzQtComponents::HueSaturationValidator.
|
pure virtual |
Must emit colorWarning when called.
Implemented in AzQtComponents::RGBColorValidator, AzQtComponents::RGBALowRangeValidator, and AzQtComponents::HueSaturationValidator.