X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ObjectsBrowser.cpp;h=75f6c32a9d86d2f0c27e7bc1fd6793ef5bde89ea;hb=52a2aa0728f8694d5774a20bd1eeba8e5e2f8b27;hp=df5625c890f267640dcf15f39a30c5225320f7ba;hpb=fc1a9c802c59a0e853dc43125362e513b6f6358f;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index df5625c89..75f6c32a9 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -20,11 +20,20 @@ #include #include +/** +* \ingroup GUI +* Tree item delegate for definition of data in column items editor +*/ class XGUI_TreeViewItemDelegate: public QStyledItemDelegate { public: + /// Constructor + /// \param theParent a parent of the delegate XGUI_TreeViewItemDelegate(XGUI_DataTree* theParent):QStyledItemDelegate(theParent), myTreedView(theParent) {} + /// Set data for item editor (name of the item) + /// \param editor a widget of editor + /// \param index the tree item index virtual void setEditorData ( QWidget* editor, const QModelIndex& index ) const { QLineEdit* aEditor = dynamic_cast(editor);