Basic shapes prepare to right menu

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2881 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2014-02-27 13:48:24 +00:00
parent ece4baca66
commit 6588e57595

View File

@@ -714,6 +714,7 @@ bool DiagramView::hasCopiableItems() {
if (
qgraphicsitem_cast<Element *>(qgi) ||
qgraphicsitem_cast<IndependentTextItem *>(qgi) ||
qgraphicsitem_cast<QetShapeItem *>(qgi) ||
qgraphicsitem_cast<DiagramImageItem *>(qgi)
) {
return(true);
@@ -732,6 +733,7 @@ bool DiagramView::hasDeletableItems() {
qgraphicsitem_cast<Element *>(qgi) ||
qgraphicsitem_cast<Conductor *>(qgi) ||
qgraphicsitem_cast<IndependentTextItem *>(qgi) ||
qgraphicsitem_cast<QetShapeItem *>(qgi) ||
qgraphicsitem_cast<DiagramImageItem *>(qgi)
) {
return(true);