From aca82211c6624b26f07e097e238810bd86514a92 Mon Sep 17 00:00:00 2001 From: rnv Date: Sat, 1 Nov 2008 12:56:37 +0000 Subject: [PATCH] To show notebook variables in the Object Browser. --- src/SalomeApp/SalomeApp_DataObject.cxx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_DataObject.cxx b/src/SalomeApp/SalomeApp_DataObject.cxx index c78e28520..c1a292ddc 100644 --- a/src/SalomeApp/SalomeApp_DataObject.cxx +++ b/src/SalomeApp/SalomeApp_DataObject.cxx @@ -445,7 +445,21 @@ QString SalomeApp_DataObject::value( const _PTR(SObject)& obj ) const { _PTR(AttributeString) strAttr = attr; std::string str = strAttr->Value(); - val = QString( str.c_str() ); + QString aStrings = QString( str.c_str() ); + + //Special case to show NoteBook variables in the "Value" column of the OB + QStringList aStringList = aStrings.split(":"); + if(aStringList.size() > 0) { + int i = 0; + for (;iFindAttribute( attr, "AttributeInteger" ) ) { -- 2.39.2