Commit 93e8d950 authored by Aleksei Kanash's avatar Aleksei Kanash

Merge branch 'aleksei_kanash_dev' into develop

parents 373f2af0 1f83f351
...@@ -595,7 +595,7 @@ void UBApplicationController::checkUpdateRequest() ...@@ -595,7 +595,7 @@ void UBApplicationController::checkUpdateRequest()
void UBApplicationController::hideDesktop() void UBApplicationController::hideDesktop()
{ {
mDisplayManager->adjustScreens(-1);
if(UBStylusTool::Eraser != UBDrawingController::drawingController()->stylusTool()){ if(UBStylusTool::Eraser != UBDrawingController::drawingController()->stylusTool()){
UBDrawingController::drawingController()->setDrawingMode(eDrawingMode_Vector); UBDrawingController::drawingController()->setDrawingMode(eDrawingMode_Vector);
...@@ -623,6 +623,9 @@ void UBApplicationController::hideDesktop() ...@@ -623,6 +623,9 @@ void UBApplicationController::hideDesktop()
} }
mIsShowingDesktop = false; mIsShowingDesktop = false;
mDisplayManager->adjustScreens(-1);
emit desktopMode(false); emit desktopMode(false);
} }
......
...@@ -477,6 +477,7 @@ bool UBGraphicsScene::inputDeviceMove(const QPointF& scenePos, const qreal& pres ...@@ -477,6 +477,7 @@ bool UBGraphicsScene::inputDeviceMove(const QPointF& scenePos, const qreal& pres
if (currentTool == UBStylusTool::Line || dc->mActiveRuler) if (currentTool == UBStylusTool::Line || dc->mActiveRuler)
{ {
if (UBDrawingController::drawingController()->stylusTool() != UBStylusTool::Marker)
if(NULL != mpLastPolygon && NULL != mCurrentStroke && mAddedItems.size() > 0){ if(NULL != mpLastPolygon && NULL != mCurrentStroke && mAddedItems.size() > 0){
UBCoreGraphicsScene::removeItemFromDeletion(mpLastPolygon); UBCoreGraphicsScene::removeItemFromDeletion(mpLastPolygon);
mAddedItems.remove(mpLastPolygon); mAddedItems.remove(mpLastPolygon);
...@@ -742,6 +743,9 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth, ...@@ -742,6 +743,9 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth,
// Here we add the item to the scene // Here we add the item to the scene
addItem(polygonItem); addItem(polygonItem);
if (!mCurrentStroke)
mCurrentStroke = new UBGraphicsStroke();
if (mCurrentStroke) if (mCurrentStroke)
{ {
polygonItem->setStroke(mCurrentStroke); polygonItem->setStroke(mCurrentStroke);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment