mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
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:
@@ -714,6 +714,7 @@ bool DiagramView::hasCopiableItems() {
|
|||||||
if (
|
if (
|
||||||
qgraphicsitem_cast<Element *>(qgi) ||
|
qgraphicsitem_cast<Element *>(qgi) ||
|
||||||
qgraphicsitem_cast<IndependentTextItem *>(qgi) ||
|
qgraphicsitem_cast<IndependentTextItem *>(qgi) ||
|
||||||
|
qgraphicsitem_cast<QetShapeItem *>(qgi) ||
|
||||||
qgraphicsitem_cast<DiagramImageItem *>(qgi)
|
qgraphicsitem_cast<DiagramImageItem *>(qgi)
|
||||||
) {
|
) {
|
||||||
return(true);
|
return(true);
|
||||||
@@ -732,6 +733,7 @@ bool DiagramView::hasDeletableItems() {
|
|||||||
qgraphicsitem_cast<Element *>(qgi) ||
|
qgraphicsitem_cast<Element *>(qgi) ||
|
||||||
qgraphicsitem_cast<Conductor *>(qgi) ||
|
qgraphicsitem_cast<Conductor *>(qgi) ||
|
||||||
qgraphicsitem_cast<IndependentTextItem *>(qgi) ||
|
qgraphicsitem_cast<IndependentTextItem *>(qgi) ||
|
||||||
|
qgraphicsitem_cast<QetShapeItem *>(qgi) ||
|
||||||
qgraphicsitem_cast<DiagramImageItem *>(qgi)
|
qgraphicsitem_cast<DiagramImageItem *>(qgi)
|
||||||
) {
|
) {
|
||||||
return(true);
|
return(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user