Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
93e8d950
Commit
93e8d950
authored
Sep 11, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'aleksei_kanash_dev' into develop
parents
373f2af0
1f83f351
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
UBApplicationController.cpp
src/core/UBApplicationController.cpp
+4
-1
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+4
-0
No files found.
src/core/UBApplicationController.cpp
View file @
93e8d950
...
...
@@ -595,7 +595,7 @@ void UBApplicationController::checkUpdateRequest()
void
UBApplicationController
::
hideDesktop
()
{
mDisplayManager
->
adjustScreens
(
-
1
);
if
(
UBStylusTool
::
Eraser
!=
UBDrawingController
::
drawingController
()
->
stylusTool
()){
UBDrawingController
::
drawingController
()
->
setDrawingMode
(
eDrawingMode_Vector
);
...
...
@@ -623,6 +623,9 @@ void UBApplicationController::hideDesktop()
}
mIsShowingDesktop
=
false
;
mDisplayManager
->
adjustScreens
(
-
1
);
emit
desktopMode
(
false
);
}
...
...
src/domain/UBGraphicsScene.cpp
View file @
93e8d950
...
...
@@ -477,6 +477,7 @@ bool UBGraphicsScene::inputDeviceMove(const QPointF& scenePos, const qreal& pres
if
(
currentTool
==
UBStylusTool
::
Line
||
dc
->
mActiveRuler
)
{
if
(
UBDrawingController
::
drawingController
()
->
stylusTool
()
!=
UBStylusTool
::
Marker
)
if
(
NULL
!=
mpLastPolygon
&&
NULL
!=
mCurrentStroke
&&
mAddedItems
.
size
()
>
0
){
UBCoreGraphicsScene
::
removeItemFromDeletion
(
mpLastPolygon
);
mAddedItems
.
remove
(
mpLastPolygon
);
...
...
@@ -742,6 +743,9 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth,
// Here we add the item to the scene
addItem
(
polygonItem
);
if
(
!
mCurrentStroke
)
mCurrentStroke
=
new
UBGraphicsStroke
();
if
(
mCurrentStroke
)
{
polygonItem
->
setStroke
(
mCurrentStroke
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment