|
|
@ -2529,6 +2529,7 @@ void UBGraphicsScene::setDocumentUpdated() |
|
|
|
|
|
|
|
|
|
|
|
void UBGraphicsScene::createEraiser() |
|
|
|
void UBGraphicsScene::createEraiser() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (UBSettings::settings()->showEraserPreviewCircle->get().toBool()) { |
|
|
|
mEraser = new QGraphicsEllipseItem(); // mem : owned and destroyed by the scene
|
|
|
|
mEraser = new QGraphicsEllipseItem(); // mem : owned and destroyed by the scene
|
|
|
|
mEraser->setRect(QRect(0, 0, 0, 0)); |
|
|
|
mEraser->setRect(QRect(0, 0, 0, 0)); |
|
|
|
mEraser->setVisible(false); |
|
|
|
mEraser->setVisible(false); |
|
|
@ -2538,7 +2539,7 @@ void UBGraphicsScene::createEraiser() |
|
|
|
|
|
|
|
|
|
|
|
mTools << mEraser; |
|
|
|
mTools << mEraser; |
|
|
|
addItem(mEraser); |
|
|
|
addItem(mEraser); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBGraphicsScene::createPointer() |
|
|
|
void UBGraphicsScene::createPointer() |
|
|
@ -2559,6 +2560,7 @@ void UBGraphicsScene::createPointer() |
|
|
|
|
|
|
|
|
|
|
|
void UBGraphicsScene::createMarkerCircle() |
|
|
|
void UBGraphicsScene::createMarkerCircle() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (UBSettings::settings()->showMarkerPreviewCircle->get().toBool()) { |
|
|
|
mMarkerCircle = new QGraphicsEllipseItem(); |
|
|
|
mMarkerCircle = new QGraphicsEllipseItem(); |
|
|
|
|
|
|
|
|
|
|
|
mMarkerCircle->setRect(QRect(0, 0, 0, 0)); |
|
|
|
mMarkerCircle->setRect(QRect(0, 0, 0, 0)); |
|
|
@ -2571,6 +2573,7 @@ void UBGraphicsScene::createMarkerCircle() |
|
|
|
|
|
|
|
|
|
|
|
mTools << mMarkerCircle; |
|
|
|
mTools << mMarkerCircle; |
|
|
|
addItem(mMarkerCircle); |
|
|
|
addItem(mMarkerCircle); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UBGraphicsScene::setToolCursor(int tool) |
|
|
|
void UBGraphicsScene::setToolCursor(int tool) |
|
|
|