Kexi API Documentation (2.0 alpha)

KexiIdentifierPropertyEdit Class Reference

#include <kexicustompropertyfactory_p.h>

Inheritance diagram for KexiIdentifierPropertyEdit:

StringEdit List of all members.

Detailed Description

Identifier editor based on ordinary string editor but always keeps a valid identifier or empty value. It's line edit has IdentifierValidator::IdentifierValidator set, so user is unable to enter invalid characters. Any chages to a null value or empty string, have no effect.

Todo:
move this to koproperty library (when KexiUtils is moves to kofficecore)

Definition at line 56 of file kexicustompropertyfactory_p.h.

Public Member Functions

 KexiIdentifierPropertyEdit (KoProperty::Property *property, QWidget *parent=0, const char *name=0)
virtual ~KexiIdentifierPropertyEdit ()
virtual void setValue (const QVariant &value, bool emitChange=true)


Constructor & Destructor Documentation

KexiIdentifierPropertyEdit::KexiIdentifierPropertyEdit KoProperty::Property *  property,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 81 of file kexicustompropertyfactory_p.cpp.

KexiIdentifierPropertyEdit::~KexiIdentifierPropertyEdit  )  [virtual]
 

Definition at line 89 of file kexicustompropertyfactory_p.cpp.


Member Function Documentation

void KexiIdentifierPropertyEdit::setValue const QVariant &  value,
bool  emitChange = true
[virtual]
 

Reimplemented: sets value but it is converted to identifier using KexiUtils::string2Identifier(). If value is null or empty string, this method has no effect.

Definition at line 93 of file kexicustompropertyfactory_p.cpp.

References KexiUtils::string2Identifier().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:03 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003