Bitcoin Core 28.99.0
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
QValidatedLineEdit Class Reference

Line edit that can be marked as "invalid" to show input validation feedback. More...

#include <qvalidatedlineedit.h>

Inheritance diagram for QValidatedLineEdit:
[legend]
Collaboration diagram for QValidatedLineEdit:
[legend]

Public Slots

void setText (const QString &)
 
void setValid (bool valid)
 
void setEnabled (bool enabled)
 

Signals

void validationDidChange (QValidatedLineEdit *validatedLineEdit)
 

Public Member Functions

 QValidatedLineEdit (QWidget *parent)
 
void clear ()
 
void setCheckValidator (const QValidator *v)
 
bool isValid ()
 

Protected Member Functions

void focusInEvent (QFocusEvent *evt) override
 
void focusOutEvent (QFocusEvent *evt) override
 

Private Slots

void markValid ()
 
void checkValidity ()
 

Private Attributes

bool valid {true}
 
const QValidator * checkValidator {nullptr}
 

Detailed Description

Line edit that can be marked as "invalid" to show input validation feedback.

When marked as invalid, it will get a red background until it is focused.

Definition at line 13 of file qvalidatedlineedit.h.

Constructor & Destructor Documentation

◆ QValidatedLineEdit()

QValidatedLineEdit::QValidatedLineEdit ( QWidget *  parent)
explicit

Definition at line 10 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ checkValidity

void QValidatedLineEdit::checkValidity ( )
privateslot

Definition at line 83 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void QValidatedLineEdit::clear ( )

Definition at line 61 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

◆ focusInEvent()

void QValidatedLineEdit::focusInEvent ( QFocusEvent *  evt)
overrideprotected

Definition at line 40 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

◆ focusOutEvent()

void QValidatedLineEdit::focusOutEvent ( QFocusEvent *  evt)
overrideprotected

Definition at line 48 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

◆ isValid()

bool QValidatedLineEdit::isValid ( )

Definition at line 116 of file qvalidatedlineedit.cpp.

Here is the caller graph for this function:

◆ markValid

void QValidatedLineEdit::markValid ( )
privateslot

Definition at line 55 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCheckValidator()

void QValidatedLineEdit::setCheckValidator ( const QValidator *  v)

Definition at line 110 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setEnabled

void QValidatedLineEdit::setEnabled ( bool  enabled)
slot

Definition at line 67 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

◆ setText

void QValidatedLineEdit::setText ( const QString &  text)
slot

Definition at line 16 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

◆ setValid

void QValidatedLineEdit::setValid ( bool  valid)
slot

Definition at line 22 of file qvalidatedlineedit.cpp.

Here is the caller graph for this function:

◆ validationDidChange

void QValidatedLineEdit::validationDidChange ( QValidatedLineEdit validatedLineEdit)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ checkValidator

const QValidator* QValidatedLineEdit::checkValidator {nullptr}
private

Definition at line 29 of file qvalidatedlineedit.h.

◆ valid

bool QValidatedLineEdit::valid {true}
private

Definition at line 28 of file qvalidatedlineedit.h.


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