mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
Minor improvement
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3550 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -179,10 +179,11 @@ void ElementTextItem::adjustItemPosition(int new_block_count) {
|
||||
*/
|
||||
void ElementTextItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if (tagg_ == "label" || parent_element_ -> linkType() & Element::AllReport)
|
||||
if ( (tagg_ == "label" || parent_element_ -> linkType() & Element::AllReport) && !parent_element_ -> isFree())
|
||||
{
|
||||
//If parent is linked, show the linked element
|
||||
if (parent_element_ -> linkType() & (Element::AllReport | Element::Slave) && !parent_element_ -> isFree()) {
|
||||
if ( parent_element_ -> linkType() & (Element::AllReport | Element::Slave) )
|
||||
{
|
||||
//Unselect and ungrab mouse to prevent unwanted
|
||||
//move when linked element is in the same scene of this.
|
||||
setSelected(false);
|
||||
|
||||
Reference in New Issue
Block a user