|
|
@ -2362,10 +2362,17 @@ void UBBoardController::togglePodcast(bool checked) |
|
|
|
void UBBoardController::moveGraphicsWidgetToControlView(UBGraphicsWidgetItem* graphicsWidget) |
|
|
|
void UBBoardController::moveGraphicsWidgetToControlView(UBGraphicsWidgetItem* graphicsWidget) |
|
|
|
{ |
|
|
|
{ |
|
|
|
mActiveScene->setURStackEnable(false); |
|
|
|
mActiveScene->setURStackEnable(false); |
|
|
|
|
|
|
|
UBGraphicsItem *toolW3C = duplicateItem(dynamic_cast<UBItem *>(graphicsWidget)); |
|
|
|
|
|
|
|
UBGraphicsWidgetItem *copyedGraphicsWidget = NULL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (UBGraphicsWidgetItem::Type == toolW3C->type()) |
|
|
|
|
|
|
|
copyedGraphicsWidget = static_cast<UBGraphicsWidgetItem *>(toolW3C); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UBToolWidget *toolWidget = new UBToolWidget(copyedGraphicsWidget, mControlView); |
|
|
|
|
|
|
|
|
|
|
|
graphicsWidget->remove(false); |
|
|
|
graphicsWidget->remove(false); |
|
|
|
mActiveScene->addItemToDeletion(graphicsWidget); |
|
|
|
mActiveScene->addItemToDeletion(graphicsWidget); |
|
|
|
|
|
|
|
|
|
|
|
UBToolWidget *toolWidget = new UBToolWidget(graphicsWidget, mControlView); |
|
|
|
|
|
|
|
mActiveScene->setURStackEnable(true); |
|
|
|
mActiveScene->setURStackEnable(true); |
|
|
|
|
|
|
|
|
|
|
|
QPoint controlViewPos = mControlView->mapFromScene(graphicsWidget->sceneBoundingRect().center()); |
|
|
|
QPoint controlViewPos = mControlView->mapFromScene(graphicsWidget->sceneBoundingRect().center()); |
|
|
|