mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
element editor -> save element :
text field ins't include in the bounding rect of the element (better behavior with xref and more handy in general use). git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3191 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -522,6 +522,7 @@ QRectF ElementScene::elementSceneGeometricRect() const{
|
|||||||
foreach (QGraphicsItem *qgi, items()) {
|
foreach (QGraphicsItem *qgi, items()) {
|
||||||
if (qgi -> type() == ElementPrimitiveDecorator::Type) continue;
|
if (qgi -> type() == ElementPrimitiveDecorator::Type) continue;
|
||||||
if (qgi -> type() == QGraphicsRectItem::Type) continue;
|
if (qgi -> type() == QGraphicsRectItem::Type) continue;
|
||||||
|
if (qgi -> type() == PartTextField::Type) continue;
|
||||||
if (CustomElementPart *cep = dynamic_cast <CustomElementPart*> (qgi)) {
|
if (CustomElementPart *cep = dynamic_cast <CustomElementPart*> (qgi)) {
|
||||||
esgr |= cep -> sceneGeometricRect();
|
esgr |= cep -> sceneGeometricRect();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user