• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kjots

Public Member Functions | List of all members
KJotsBookshelfEntryValidator Class Reference

#include <kjotsbookshelfentryvalidator.h>

Inheritance diagram for KJotsBookshelfEntryValidator:
Inheritance graph
[legend]

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

KJotsBookshelfEntryValidator::KJotsBookshelfEntryValidator ( QAbstractItemModel *  model,
QObject *  parent = 0 
)
explicit

Create a new Validator for Entries in the KJots bookshelf.

Parameters
parentThe parent object.
modelThe 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

QValidator::State KJotsBookshelfEntryValidator::validate ( QString &  input,
int &  pos 
) const
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:
  • kjotsbookshelfentryvalidator.h
  • kjotsbookshelfentryvalidator.cpp
This file is part of the KDE documentation.
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.

kjots

Skip menu "kjots"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal