|
|
|
@ -503,6 +503,22 @@ void UBBoardView::handleItemsSelection(QGraphicsItem *item) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
// Deselect the other items
|
|
|
|
|
foreach(QGraphicsItem* it, scene()->selectedItems()){ |
|
|
|
|
UBGraphicsGroupContainerItem* pGroup = dynamic_cast<UBGraphicsGroupContainerItem*>(it); |
|
|
|
|
if(NULL != pGroup){ |
|
|
|
|
foreach(QGraphicsItem* pGIt, pGroup->childItems()){ |
|
|
|
|
UBGraphicsTextItem* pTxt = dynamic_cast<UBGraphicsTextItem*>(pGIt); |
|
|
|
|
if(NULL != pTxt){ |
|
|
|
|
// We must clear the text selection
|
|
|
|
|
QTextCursor t = pTxt->textCursor(); |
|
|
|
|
t.clearSelection(); |
|
|
|
|
pTxt->setTextCursor(t); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|