BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Default editor factory for cell editors in Qt trees and tables. More...
Public Member Functions | |
DefaultEditorFactory () | |
std::unique_ptr< CustomEditor > | createEditor (const QModelIndex &index) const override |
Creates editor for given model index basing either on editorType() or specific variant name. More... | |
Private Attributes | |
std::unique_ptr< RoleDependentEditorFactory > | m_roleDependentFactory |
std::unique_ptr< VariantDependentEditorFactory > | m_variantDependentFactory |
Default editor factory for cell editors in Qt trees and tables.
Internaly it uses two factories
Definition at line 66 of file defaulteditorfactory.h.
DefaultEditorFactory::DefaultEditorFactory | ( | ) |
Definition at line 116 of file defaulteditorfactory.cpp.
|
overridevirtual |
Creates editor for given model index basing either on editorType() or specific variant name.
Implements ModelView::EditorFactoryInterface.
Definition at line 124 of file defaulteditorfactory.cpp.
References m_roleDependentFactory, and m_variantDependentFactory.
Referenced by gui2::CustomLayerTreeEditorFactory::createEditor(), and gui2::CustomBeamPropertyEditorFactory::createEditor().
|
private |
Definition at line 73 of file defaulteditorfactory.h.
Referenced by createEditor().
|
private |
Definition at line 74 of file defaulteditorfactory.h.
Referenced by createEditor().