From: vsv Date: Mon, 24 Aug 2015 09:48:43 +0000 (+0300) Subject: Correct data model hierarchy X-Git-Tag: V_1.4.0_beta4~283 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41bf870c5d709ac892b7d7e8618a6e6a3bda982a;p=modules%2Fshaper.git Correct data model hierarchy --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 0b2724532..d5c7805e0 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -54,7 +54,7 @@ ModelAPI_Document* getSubDocument(void* theObj) // Constructor ************************************************* -XGUI_DataModel::XGUI_DataModel(QObject* theParent) : QAbstractItemModel(theParent) +XGUI_DataModel::XGUI_DataModel(QObject* theParent) : ModuleBase_IDocumentDataModel(theParent) { myXMLReader.readAll(); diff --git a/src/XGUI/XGUI_DataModel.h b/src/XGUI/XGUI_DataModel.h index b1c3935c2..5d94f68ec 100644 --- a/src/XGUI/XGUI_DataModel.h +++ b/src/XGUI/XGUI_DataModel.h @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include @@ -26,7 +26,7 @@ * - An index which contains internal pointer as ModelAPI_Object its the object * - An index which contains internal pointer as ModelAPI_Document is a folder which belongs to this document */ -class XGUI_EXPORT XGUI_DataModel : public QAbstractItemModel, public Events_Listener +class XGUI_EXPORT XGUI_DataModel : public ModuleBase_IDocumentDataModel, public Events_Listener { Q_OBJECT public: