From 88712d404a18f89824ce7d0219cdbbd8097163dd Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 14 Dec 2016 10:54:47 +0300 Subject: [PATCH] Remove dependency on XGUI --- src/CollectionPlugin/CMakeLists.txt | 2 -- src/CollectionPlugin/CollectionPlugin_WidgetField.cpp | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/CollectionPlugin/CMakeLists.txt b/src/CollectionPlugin/CMakeLists.txt index 31bd93d10..c1b22136e 100644 --- a/src/CollectionPlugin/CMakeLists.txt +++ b/src/CollectionPlugin/CMakeLists.txt @@ -41,7 +41,6 @@ INCLUDE_DIRECTORIES( ../Events ../ModuleBase ../Config - ../XGUI ${CAS_INCLUDE_DIRS} ) @@ -52,7 +51,6 @@ SET(PROJECT_LIBRARIES GeomAlgoAPI GeomValidators ModuleBase - XGUI ) ADD_DEFINITIONS(-DCOLLECTIONPLUGIN_EXPORTS ${CAS_DEFINITIONS}) diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index 80f3e3d68..5c0040a91 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -10,10 +10,7 @@ #include #include #include - -#include -#include -#include +#include #include #include @@ -356,8 +353,7 @@ bool CollectionPlugin_WidgetField::eventFilter(QObject* theObject, QEvent* theEv } else if (theEvent->type() == QEvent::FocusIn) { QTableWidget* aTable = dynamic_cast(theObject); if (aTable) { - XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop); - XGUI_PropertyPanel* aPanel = aWorkshop->propertyPanel(); + ModuleBase_IPropertyPanel* aPanel = myWorkshop->propertyPanel(); if (aPanel->activeWidget() != this) { myActivation = true; aPanel->activateWidget(this, false); -- 2.39.2