Fabcoin Core  0.16.2
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 setValid (bool valid)
 
void setEnabled (bool enabled)
 
void checkValidity ()
 

Signals

void validationDidChange (QValidatedLineEdit *validatedLineEdit)
 

Public Member Functions

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

Protected Member Functions

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

Private Slots

void markValid ()
 

Private Attributes

bool valid
 
const QValidator * checkValidator
 
bool emptyIsValid
 

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 ( QWidget *  parent)
explicit

Definition at line 10 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

Member Function Documentation

void QValidatedLineEdit::checkValidity ( )
slot

Definition at line 106 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void QValidatedLineEdit::clear ( )

Definition at line 84 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void QValidatedLineEdit::focusInEvent ( QFocusEvent *  evt)
protected

Definition at line 53 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

void QValidatedLineEdit::focusOutEvent ( QFocusEvent *  evt)
protected

Definition at line 61 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

bool QValidatedLineEdit::getEmptyIsValid ( ) const

Definition at line 68 of file qvalidatedlineedit.cpp.

bool QValidatedLineEdit::isValid ( )

Definition at line 138 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void QValidatedLineEdit::markValid ( )
privateslot

Definition at line 78 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void QValidatedLineEdit::setCheckValidator ( const QValidator *  v)

Definition at line 133 of file qvalidatedlineedit.cpp.

Here is the caller graph for this function:

void QValidatedLineEdit::setEmptyIsValid ( bool  value)

Definition at line 73 of file qvalidatedlineedit.cpp.

Here is the caller graph for this function:

void QValidatedLineEdit::setEnabled ( bool  enabled)
slot

Definition at line 90 of file qvalidatedlineedit.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void QValidatedLineEdit::setValid ( bool  valid)
slot

Definition at line 19 of file qvalidatedlineedit.cpp.

Here is the caller graph for this function:

void QValidatedLineEdit::validationDidChange ( QValidatedLineEdit validatedLineEdit)
signal

Definition at line 158 of file moc_qvalidatedlineedit.cpp.

Here is the caller graph for this function:

Member Data Documentation

const QValidator* QValidatedLineEdit::checkValidator
private

Definition at line 32 of file qvalidatedlineedit.h.

bool QValidatedLineEdit::emptyIsValid
private

Definition at line 33 of file qvalidatedlineedit.h.

bool QValidatedLineEdit::valid
private

Definition at line 31 of file qvalidatedlineedit.h.


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