Code formatting
This commit is contained in:
parent
d405be95b8
commit
630baa3724
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2013-2017 CERN
|
||||
* Copyright (C) 2013-2018 CERN
|
||||
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
|
||||
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
||||
*
|
||||
|
@ -140,12 +140,12 @@ void SCH_VIEW::ClearPreview()
|
|||
}
|
||||
|
||||
|
||||
void SCH_VIEW::AddToPreview( EDA_ITEM *aItem, bool takeOwnership )
|
||||
void SCH_VIEW::AddToPreview( EDA_ITEM* aItem, bool aTakeOwnership )
|
||||
{
|
||||
Hide( aItem, false );
|
||||
m_preview->Add( aItem );
|
||||
|
||||
if( takeOwnership )
|
||||
if( aTakeOwnership )
|
||||
m_ownedItems.push_back( aItem );
|
||||
|
||||
SetVisible( m_preview.get(), true );
|
||||
|
@ -187,5 +187,4 @@ void SCH_VIEW::HideWorksheet()
|
|||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
}; // namespace KIGFX
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
KIGFX::VIEW_GROUP* GetPreview() const { return m_preview.get(); }
|
||||
|
||||
void ClearPreview();
|
||||
void AddToPreview( EDA_ITEM *aItem, bool takeOwnership = true );
|
||||
void AddToPreview( EDA_ITEM* aItem, bool aTakeOwnership = true );
|
||||
|
||||
void ShowSelectionArea( bool aShow = true );
|
||||
void ShowPreview( bool aShow = true );
|
||||
|
|
Loading…
Reference in New Issue