dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Utils::BaseValidatingLineEdit Class Referenceabstract

#include <basevalidatinglineedit.h>

Inheritance diagram for Utils::BaseValidatingLineEdit:
Utils::PathValidatingLineEdit

Signals

void validChanged ()
 
void validChanged (bool validState)
 
void validReturnPressed ()
 

Protected Slots

virtual void slotReturnPressed ()
 
virtual void slotChanged (const QString &t)
 

Protected Member Functions

virtual bool validate (const QString &value, QString *errorMessage) const =0
 

Detailed Description

Base class for validating line edits that performs validation in a virtual validate() function to be implemented in derived classes. When invalid, the text color will turn red and a tooltip will contain the error message. This approach is less intrusive than a QValidator which will prevent the user from entering certain characters.

The widget has a concept of an "initialText" which can be something like "<Enter name here>". This results in state 'DisplayingInitialText', which is not valid, but is not marked red.

Definition at line 50 of file basevalidatinglineedit.h.

Member Function Documentation

void Utils::BaseValidatingLineEdit::slotChanged ( const QString &  t)
protectedvirtualslot

Definition at line 121 of file basevalidatinglineedit.cpp.

void Utils::BaseValidatingLineEdit::slotReturnPressed ( )
protectedvirtualslot

Definition at line 146 of file basevalidatinglineedit.cpp.

virtual bool Utils::BaseValidatingLineEdit::validate ( const QString &  value,
QString *  errorMessage 
) const
protectedpure virtual
void Utils::BaseValidatingLineEdit::validChanged ( )
signal
void Utils::BaseValidatingLineEdit::validChanged ( bool  validState)
signal
void Utils::BaseValidatingLineEdit::validReturnPressed ( )
signal

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