Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

src_gui_itemviews_qitemeditorfactory.cpp

//! [0]
Q_PROPERTY(QColor color READ color WRITE setColor USER true)
//! [0]


//! [1]
QItemEditorCreator<MyEditor> *itemCreator =
    new QItemEditorCreator<MyEditor>("myProperty");

QItemEditorFactory *factory = new QItemEditorFactory;
//! [1]


//! [2]
QItemEditorFactory *editorFactory = new QItemEditorFactory;
QItemEditorCreatorBase *creator = new QStandardItemEditorCreator<MyFancyDateTimeEdit>();
editorFactory->registerEditor(QVariant::DateType, creator);
//! [2]


//! [3]
Q_PROPERTY(QColor color READ color WRITE setColor USER true)      
//! [3]

Generated by  Doxygen 1.6.0   Back to index