From 41bf870c5d709ac892b7d7e8618a6e6a3bda982a Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 24 Aug 2015 12:48:43 +0300 Subject: [PATCH] Correct data model hierarchy --- src/XGUI/XGUI_DataModel.cpp | 2 +- src/XGUI/XGUI_DataModel.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: -- 2.39.2