Salome HOME
Porting to SALOME_8.2.0 : SHAPERGUI module
authornds <nds@opencascade.com>
Thu, 15 Dec 2016 12:13:10 +0000 (15:13 +0300)
committernds <nds@opencascade.com>
Thu, 15 Dec 2016 12:13:10 +0000 (15:13 +0300)
src/SHAPERGUI/SHAPERGUI.cpp
src/SHAPERGUI/SHAPERGUI_SalomeViewer.cpp
src/XGUI/XGUI_ObjectsBrowser.cpp

index bea2a1fad7a8c5188ccd4ae69ddbb88f671ea8f9..7e41d32b6bd8febfc975704834fc9408e251d855 100644 (file)
@@ -235,7 +235,7 @@ bool SHAPERGUI::activateModule(SUIT_Study* theStudy)
       bool aFound = false;
       for (aLIt.Initialize(aList); aLIt.More(); aLIt.Next()) {
         anAISIO = aLIt.Value();
-        if (anAISIO.Access() == aAIS.Access()) {
+        if (anAISIO.get() == aAIS.get()) {
           aFound = true;
           break;
         }
@@ -438,7 +438,7 @@ QAction* SHAPERGUI::addFeature(const QString& theWBName, const QString& theId,
   myActionsList.append(theId);
   SUIT_Desktop* aDesk = application()->desktop();
   int aKeys = 0;
-  for (unsigned int i = 0; i < theKeys.count(); i++)
+  for (int i = 0; i < theKeys.count(); i++)
     aKeys += theKeys[i];
   QAction* aAction = createAction(aId, theTip, theIcon, theTitle, theTip, aKeys, aDesk,
                                   isCheckable);
@@ -506,7 +506,7 @@ QAction* SHAPERGUI::addDesktopCommand(const QString& theId, const QString& theTi
   myActionsList.append(theId);
   SUIT_Desktop* aDesk = application()->desktop();
   int aKeys = 0;
-  for (unsigned int i = 0; i < theKeys.count(); i++)
+  for (int i = 0; i < theKeys.count(); i++)
     aKeys += theKeys[i];
   QAction* aAction = createAction(aId, theTip, theIcon, theTitle, theTip, aKeys, aDesk,
                                   isCheckable);
index 15027a581e0b43255b1743195626e9d9b4c1ed2f..4d978aeb83c1f3e3e65c0deb850205fd3943e3f8 100644 (file)
@@ -400,7 +400,7 @@ bool SHAPERGUI_SalomeViewer::hasSelectionFilter(const Handle(SelectMgr_Filter)&
     const SelectMgr_ListOfFilter& aFilters = aContext->Filters();
     SelectMgr_ListIteratorOfListOfFilter aIt(aFilters);
     for (; aIt.More() && !aFoundFilter; aIt.Next()) {
-      aFoundFilter = theFilter.Access() == aIt.Value().Access();
+      aFoundFilter = theFilter.get() == aIt.Value().get();
     }
   }
   return aFoundFilter;
index 2ac7f97d9f484539ba119346ef34cbad3fa75c58..173e4e8fb72c4f7c0f7ed7302bf3e71da1e26d74 100644 (file)
@@ -22,7 +22,9 @@
 
 #ifdef WIN32
 #ifdef HAVE_SALOME
-#include <QWindowsStyle>
+// PORTING_TO_SALOME_8
+//#include <QWindowsStyle>
+#include <QCommonStyle>
 #endif
 #endif
 
@@ -70,7 +72,7 @@ XGUI_DataTree::XGUI_DataTree(QWidget* theParent)
 {
 #ifdef WIN32
 #ifdef HAVE_SALOME
-  setStyle(new QWindowsStyle());
+  setStyle(new QCommonStyle());
 #else
   myStyle = new XGUI_TreeViewStyle();
   setStyle(myStyle);