From cfc1e714fa032ca00c54188cddff93f3ec0b4619 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 3 Feb 2010 07:16:22 +0000 Subject: [PATCH] untabify --- src/LightApp/LightApp_Application.cxx | 16 ++++++++-------- src/SalomeApp/SalomeApp_Application.cxx | 24 ++++++++++++------------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 119329bf0..3a6d053b2 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -563,7 +563,7 @@ void LightApp_Application::createActions() QString modName = moduleName( *it ); if ( !isModuleAccessible( *it ) ) - continue; + continue; QString iconName; if ( iconMap.contains( *it ) ) @@ -574,9 +574,9 @@ void LightApp_Application::createActions() { icon = modIcon; INFOS ( "****************************************************************" << std::endl - << "* Icon for " << (*it).toLatin1().constData() - << " not found. Using the default one." << std::endl - << "****************************************************************" << std::endl ); + << "* Icon for " << (*it).toLatin1().constData() + << " not found. Using the default one." << std::endl + << "****************************************************************" << std::endl ); } icon = Qtx::scaleIcon( icon, iconSize ); @@ -585,7 +585,7 @@ void LightApp_Application::createActions() } connect( moduleAction, SIGNAL( moduleActivated( const QString& ) ), - this, SLOT( onModuleActivation( const QString& ) ) ); + this, SLOT( onModuleActivation( const QString& ) ) ); registerAction( ModulesListId, moduleAction ); } @@ -2530,9 +2530,9 @@ void LightApp_Application::updateModuleActions() if ( !isModuleAccessible( modName ) ) { QList apps = SUIT_Session::session()->applications(); foreach( SUIT_Application* app, apps ) { - LightApp_Application* lapp = dynamic_cast( app ); - if ( lapp && lapp != this ) - lapp->removeModuleAction( modName ); + LightApp_Application* lapp = dynamic_cast( app ); + if ( lapp && lapp != this ) + lapp->removeModuleAction( modName ); } } } diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index b17c2a534..41896b0b8 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -1193,18 +1193,18 @@ void SalomeApp_Application::contextMenuPopup( const QString& type, QMenu* thePop if ( study ) { _PTR(Study) stdDS = study->studyDS(); if ( stdDS ) { - _PTR(SObject) aSO = stdDS->FindObjectID( aIObj->getEntry() ); - if ( aSO ) { - _PTR( GenericAttribute ) anAttr; - std::string auid = "AttributeUserID"; - auid += Kernel_Utils::GetGUID(Kernel_Utils::ObjectdID); - if ( aSO->FindAttribute( anAttr, auid ) ) { - _PTR(AttributeUserID) aAttrID = anAttr; - QString aId = aAttrID->Value().c_str(); - if ( myExtActions.contains( aId ) ) { - thePopup->addAction(myExtActions[aId]); - } - } + _PTR(SObject) aSO = stdDS->FindObjectID( aIObj->getEntry() ); + if ( aSO ) { + _PTR( GenericAttribute ) anAttr; + std::string auid = "AttributeUserID"; + auid += Kernel_Utils::GetGUID(Kernel_Utils::ObjectdID); + if ( aSO->FindAttribute( anAttr, auid ) ) { + _PTR(AttributeUserID) aAttrID = anAttr; + QString aId = aAttrID->Value().c_str(); + if ( myExtActions.contains( aId ) ) { + thePopup->addAction(myExtActions[aId]); + } + } } } } -- 2.39.2