kjots
#include <kjotsbookshelfentryvalidator.h>
Public Member Functions | |
KJotsBookshelfEntryValidator (QAbstractItemModel *model, QObject *parent=0) | |
~KJotsBookshelfEntryValidator () | |
virtual QValidator::State | validate (QString &input, int &pos) const |
Detailed Description
This class is a validator intended to be used with an editable QComboBox.
validate returns the state of whether the text in the lineedit matches one of the items in the model. All matching is attempted on the first column of the model.
Definition at line 36 of file kjotsbookshelfentryvalidator.h.
Constructor & Destructor Documentation
|
explicit |
Create a new Validator for Entries in the KJots bookshelf.
- Parameters
-
parent The parent object. model The model to use to validate the input.
Definition at line 25 of file kjotsbookshelfentryvalidator.cpp.
KJotsBookshelfEntryValidator::~KJotsBookshelfEntryValidator | ( | ) |
Destructor.
Definition at line 31 of file kjotsbookshelfentryvalidator.cpp.
Member Function Documentation
|
virtual |
Reimplemented.
Returns the state of whether input
matches one of the items in the model.
If the text does not match any item in the model, the state is Invalid. If the text is empty, the state is Intermediate. If the text matches the start of one or more items in the model, the state is Intermediate. If the text matches one of the items in the model exactly, the state is Acceptable.
- Returns
- The validation state.
Definition at line 36 of file kjotsbookshelfentryvalidator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.