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:
blacksun
2018-04-04 11:02:40 +00:00
parent 91bfa40401
commit fb47a18b69
5 changed files with 29 additions and 92 deletions

View File

@@ -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