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
a3a24b74
Commit
a3a24b74
authored
Jun 15, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cursor upper widgets is the same as upper board.
Fixed restoring of cursors at mouse release event on board.
parent
aa594554
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
UBBoardView.cpp
src/board/UBBoardView.cpp
+2
-0
UBGraphicsProxyWidget.cpp
src/domain/UBGraphicsProxyWidget.cpp
+4
-0
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+0
-5
No files found.
src/board/UBBoardView.cpp
View file @
a3a24b74
...
...
@@ -626,6 +626,7 @@ UBBoardView::mouseReleaseEvent (QMouseEvent *event)
{
UBStylusTool
::
Enum
currentTool
=
(
UBStylusTool
::
Enum
)
UBDrawingController
::
drawingController
()
->
stylusTool
();
setToolCursor
(
currentTool
);
// first propagate device release to the scene
if
(
scene
())
scene
()
->
inputDeviceRelease
();
...
...
@@ -1019,6 +1020,7 @@ UBBoardView::setToolCursor (int tool)
break
;
case
UBStylusTool
:
:
Eraser
:
controlViewport
->
setCursor
(
UBResources
::
resources
()
->
eraserCursor
);
scene
()
->
hideEraser
();
break
;
case
UBStylusTool
:
:
Marker
:
controlViewport
->
setCursor
(
UBResources
::
resources
()
->
markerCursor
);
...
...
src/domain/UBGraphicsProxyWidget.cpp
View file @
a3a24b74
...
...
@@ -47,6 +47,10 @@ UBGraphicsProxyWidget::~UBGraphicsProxyWidget()
QVariant
UBGraphicsProxyWidget
::
itemChange
(
GraphicsItemChange
change
,
const
QVariant
&
value
)
{
if
(
change
==
QGraphicsItem
::
ItemCursorHasChanged
&&
scene
())
{
unsetCursor
();
}
if
((
change
==
QGraphicsItem
::
ItemSelectedHasChanged
)
&&
scene
())
{
...
...
src/domain/UBGraphicsScene.cpp
View file @
a3a24b74
...
...
@@ -2372,9 +2372,4 @@ void UBGraphicsScene::setToolCursor(int tool)
{
deselectAllItems
();
}
if
(
tool
!=
(
int
)
UBStylusTool
::
Eraser
)
{
hideEraser
();
}
}
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