From 86f1538cabe3b2b61ce33a97e0cad465323e41b5 Mon Sep 17 00:00:00 2001 From: stv Date: Fri, 27 Jan 2006 06:01:20 +0000 Subject: [PATCH] Perfomance testiong field myModifiedTime removed. --- src/ObjBrowser/OB_Browser.cxx | 17 ----------------- src/ObjBrowser/OB_Browser.h | 5 ----- 2 files changed, 22 deletions(-) diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index 7ad1e6d44..d40468753 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -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(); -} - diff --git a/src/ObjBrowser/OB_Browser.h b/src/ObjBrowser/OB_Browser.h index a6e3cd421..0fec2b90c 100755 --- a/src/ObjBrowser/OB_Browser.h +++ b/src/ObjBrowser/OB_Browser.h @@ -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 -- 2.39.2