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
bc0cffb4
Commit
bc0cffb4
authored
Feb 24, 2014
by
-f
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISSUE Sankore 1569
parent
eb601333
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
UBBoardView.cpp
src/board/UBBoardView.cpp
+6
-7
No files found.
src/board/UBBoardView.cpp
View file @
bc0cffb4
...
...
@@ -1083,8 +1083,7 @@ void UBBoardView::mouseMoveEvent (QMouseEvent *event)
// }
// QTime mouseMoveTime = QTime::currentTime();
if
(
!
mIsDragInProgress
&&
((
mapToScene
(
event
->
pos
())
-
mLastPressedMousePos
).
manhattanLength
()
<
QApplication
::
startDragDistance
()))
{
if
(
!
mIsDragInProgress
&&
((
mapToScene
(
event
->
pos
())
-
mLastPressedMousePos
).
manhattanLength
()
<
QApplication
::
startDragDistance
()))
{
qDebug
()
<<
"mouse move event canceled"
;
return
;
}
...
...
@@ -1098,10 +1097,8 @@ void UBBoardView::mouseMoveEvent (QMouseEvent *event)
return
;
}
if
((
UBDrawingController
::
drawingController
()
->
isDrawingTool
())
&&
!
mMouseButtonIsPressed
)
{
if
((
UBDrawingController
::
drawingController
()
->
isDrawingTool
())
&&
!
mMouseButtonIsPressed
)
QGraphicsView
::
mouseMoveEvent
(
event
);
}
int
currentTool
=
static_cast
<
int
>
(
UBDrawingController
::
drawingController
()
->
stylusTool
());
switch
(
currentTool
)
{
...
...
@@ -1159,6 +1156,9 @@ void UBBoardView::mouseMoveEvent (QMouseEvent *event)
if
(
currentTool
==
UBStylusTool
::
Selector
)
{
foreach
(
QGraphicsItem
*
item
,
items
(
bandRect
))
{
if
(
item
->
type
()
==
UBGraphicsItemType
::
PolygonItemType
&&
item
->
parentItem
())
item
=
item
->
parentItem
();
if
(
item
->
type
()
==
UBGraphicsW3CWidgetItem
::
Type
||
item
->
type
()
==
UBGraphicsPixmapItem
::
Type
||
item
->
type
()
==
UBGraphicsMediaItem
::
Type
...
...
@@ -1199,8 +1199,7 @@ void UBBoardView::mouseMoveEvent (QMouseEvent *event)
default
:
if
(
!
mTabletStylusIsPressed
&&
scene
())
{
scene
()
->
inputDeviceMove
(
mapToScene
(
UBGeometryUtils
::
pointConstrainedInRect
(
event
->
pos
(),
rect
()))
,
mMouseButtonIsPressed
);
scene
()
->
inputDeviceMove
(
mapToScene
(
UBGeometryUtils
::
pointConstrainedInRect
(
event
->
pos
(),
rect
()))
,
mMouseButtonIsPressed
);
}
event
->
accept
();
}
...
...
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