Class to handle styling and painting of QLineEdit widgets.
More...
#include <LineEdit.h>
|
class | BrowseEdit |
|
class | Style |
|
Class to handle styling and painting of QLineEdit widgets.
◆ applyDropTargetStyle()
static void AzQtComponents::LineEdit::applyDropTargetStyle |
( |
QLineEdit * |
lineEdit, |
|
|
bool |
valid |
|
) |
| |
|
static |
Applies the "DropTarget" style class to a QLineEdit.
- Parameters
-
valid | Whether the QLineEdit is a valid drop target or not. |
◆ getClearButton()
static QToolButton* AzQtComponents::LineEdit::getClearButton |
( |
const QLineEdit * |
lineEdit | ) |
|
|
static |
Returns a pointer to the QToolButton created when QLineEdit::setClearButtonEnabled(true) is called. Returns nullptr if the clear button has not been created yet.
◆ loadConfig()
static Config AzQtComponents::LineEdit::loadConfig |
( |
QSettings & |
settings | ) |
|
|
static |
Sets the LineEdit style configuration.
- Parameters
-
settings | The settings object to load the configuration from. |
- Returns
- The new configuration of the LineEdit.
◆ setErrorIconEnabled()
static void AzQtComponents::LineEdit::setErrorIconEnabled |
( |
QLineEdit * |
lineEdit, |
|
|
bool |
enabled |
|
) |
| |
|
static |
Sets whether an error icon and message should be displayed when the LineEdit is in an error state. Default value is true.
◆ setErrorMessage()
static void AzQtComponents::LineEdit::setErrorMessage |
( |
QLineEdit * |
lineEdit, |
|
|
const QString & |
error |
|
) |
| |
|
static |
Sets the message to display in a tooltip if the QLineEdit validator detects an error.
◆ setExternalError()
static void AzQtComponents::LineEdit::setExternalError |
( |
QLineEdit * |
lineEdit, |
|
|
bool |
hasExternalError |
|
) |
| |
|
static |
Set external error state. The global error state is calculated by an OR operation between external error state, validator and inputMask.
The documentation for this class was generated from the following file:
- Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/LineEdit.h