]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Perfomance testiong field myModifiedTime removed. SPDev_start
authorstv <stv@opencascade.com>
Fri, 27 Jan 2006 06:01:20 +0000 (06:01 +0000)
committerstv <stv@opencascade.com>
Fri, 27 Jan 2006 06:01:20 +0000 (06:01 +0000)
src/ObjBrowser/OB_Browser.cxx
src/ObjBrowser/OB_Browser.h

index 7ad1e6d44d2da5ac3cf1f86d9af1ea32a3cb9108..d404687537f47282430776eebf95c619aab989d7 100755 (executable)
@@ -252,8 +252,6 @@ myRootDecorated( true )
            this, SLOT( onDoubleClicked( QListViewItem* ) ) );
 
   setRootObject( root );
-
-  setModified();
 }
 
 OB_Browser::~OB_Browser()
@@ -358,8 +356,6 @@ void OB_Browser::setRootObject( SUIT_DataObject* theRoot )
 
   autoOpenBranches();
 
-  setModified();
-
   if ( selNum != numberOfSelected() )
     emit selectionChanged();
 }
@@ -669,13 +665,8 @@ void OB_Browser::updateTree( SUIT_DataObject* obj, const bool autoOpen )
   if( autoOpen )
     autoOpenBranches();
 
-  setModified();
-
   if ( selNum != numberOfSelected() )
     emit selectionChanged();
-
-//  QTime t2 = QTime::currentTime();
-//  qDebug( QString( "update tree time = %1 msecs" ).arg( t1.msecsTo( t2 ) ) );
 }
 
 void OB_Browser::replaceTree( SUIT_DataObject* src, SUIT_DataObject* trg )
@@ -712,8 +703,6 @@ void OB_Browser::replaceTree( SUIT_DataObject* src, SUIT_DataObject* trg )
 
   autoOpenBranches();
 
-  setModified();
-
   if ( selNum != numberOfSelected() )
     emit selectionChanged();
 }
@@ -1266,9 +1255,3 @@ void OB_Browser::onDoubleClicked( QListViewItem* item )
   if ( item )
     emit doubleClicked( dataObject( item ) );
 }
-
-void OB_Browser::setModified()
-{
-  myModifiedTime = clock();
-}
-
index a6e3cd42113231860df4d79739858decf157a98c..0fec2b90cec927ca21c3af4853cbe82c67925b68 100755 (executable)
@@ -118,9 +118,6 @@ public:
 
   virtual void      contextMenuPopup( QPopupMenu* );
 
-  void              setModified();
-  unsigned long     getModifiedTime() { return myModifiedTime; }
-
 signals:
   void              selectionChanged();
   void              doubleClicked( SUIT_DataObject* );
@@ -189,8 +186,6 @@ private:
   int               myAutoOpenLevel;
 
   friend class OB_Browser::ToolTip;
-
-  unsigned long     myModifiedTime;
 };
 
 #endif