mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-02 18:00:53 +01:00
Remove, move and clean some functions of diagram view, among other things because it is not the role of the diagram view to provide these functions.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5294 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -197,6 +197,20 @@ bool DiagramContent::hasDeletableItems() const
|
||||
return(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DiagramContent::hasCopiableItems
|
||||
* @return true if this diagram content have copiable items.
|
||||
*/
|
||||
bool DiagramContent::hasCopiableItems() const
|
||||
{
|
||||
if(!m_images.isEmpty()) return true;
|
||||
if(!m_shapes.isEmpty()) return true;
|
||||
if(!m_elements.isEmpty()) return true;
|
||||
if(!m_text_fields.isEmpty()) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DiagramContent::clear
|
||||
* Remove all items from the diagram content
|
||||
|
||||
Reference in New Issue
Block a user