]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
modifications that make sources compilable without support of STL by Qt.
authorasv <asv@opencascade.com>
Fri, 5 Aug 2005 11:04:55 +0000 (11:04 +0000)
committerasv <asv@opencascade.com>
Fri, 5 Aug 2005 11:04:55 +0000 (11:04 +0000)
src/VISUGUI/VisuGUI.cxx
src/VISUGUI/VisuGUI_EditContainerDlg.cxx

index 5b8741102b44b02d66e67f94fb08b7de2a9aae9c..403a46121e12cda86b2fe516780347bd7093f08c 100644 (file)
@@ -316,11 +316,11 @@ OnExportTableToFile()
       if (isTOR) {
         _PTR(AttributeTableOfReal) aTabAttr (anAttr);
         if (!aTabAttr) return;
-        aTitle = aTabAttr->GetTitle();
+        aTitle = aTabAttr->GetTitle().c_str();
       } else {
        _PTR(AttributeTableOfInteger) aTabAttr (anAttr);
        if (!aTabAttr) return;
-        aTitle = aTabAttr->GetTitle();
+        aTitle = aTabAttr->GetTitle().c_str();
       }
       aTitle.simplifyWhiteSpace();
       aTitle = aTitle.replace(QRegExp(" "), "_");
index 353944e5ca47f151282ded72bec48aa94967089f..eed32a53721cc81c373f3585e982af23bb5df15d 100644 (file)
@@ -320,7 +320,7 @@ void VisuGUI_EditContainerDlg::initFromPrsObject (VISU::Container_i* theContaine
        CurveStruct aEntry;
        aEntry.TableName = getSObjectName(aTableSO);
        aEntry.CurveName = getSObjectName(aSObject);
-       aEntry.CurveEntry = aSObject->GetID();
+       aEntry.CurveEntry = aSObject->GetID().c_str();
        aStudyCurves.append(aEntry);
       }
     }
@@ -346,7 +346,7 @@ void VisuGUI_EditContainerDlg::storeToPrsObject (VISU::Container_i* theContainer
   _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myVisuGUI));
   QListViewItem* anItem = myContainerLst->firstChild();
   while (anItem) {
-    _PTR(SObject) aCurveSO = aStudy->FindObjectID(anItem->text(2));
+    _PTR(SObject) aCurveSO = aStudy->FindObjectID(anItem->text(2).latin1());
     if (aCurveSO) {
       CORBA::Object_var aObject = VISU::ClientSObjectToObject(aCurveSO);
       if (!CORBA::is_nil(aObject)) {
@@ -365,7 +365,7 @@ QString VisuGUI_EditContainerDlg::getSObjectName (_PTR(SObject) theSObject)
   _PTR(GenericAttribute) anAttr;
   if (theSObject->FindAttribute(anAttr, "AttributeName")) {
     _PTR(AttributeName) aName (anAttr);
-    return QString(aName->Value());
+    return QString(aName->Value().c_str());
   }
   return QString("");
 }