Ananas Library 0.9.5
aEditorFactory Class Reference

#include <wdbtable.h>

Inheritance diagram for aEditorFactory:

Public Member Functions

 aEditorFactory (QObject *parent=0, const char *name=0)
QWidget * createEditor (QWidget *parent, const QSqlField *field)
void setMd (aCfg *md)

Detailed Description

Class for support custom editor in wDBTable.

Constructor & Destructor Documentation

◆ aEditorFactory()

aEditorFactory::aEditorFactory ( QObject * parent = 0,
const char * name = 0 )
inline

Constructor

Member Function Documentation

◆ createEditor()

QWidget * aEditorFactory::createEditor ( QWidget * parent,
const QSqlField * field )

Set custom field editor (wField) used property `value'.

*/ void wDBTable::setWFieldEditor() { aEditorFactory * f = new aEditorFactory(this,""); f->setMd(md); QSqlPropertyMap * m = new QSqlPropertyMap(); m->insert("wField", "value"); installPropertyMap(m); installEditorFactory(f); }

/*!

Construct cell editor. Creates new wField object and inited it.

References wDBTable::getFieldType(), aWidget::initObject(), and aLog::print().


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