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
c28c9718
Commit
c28c9718
authored
Sep 27, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some estitics
parent
872e2ee9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
UBBoardView.cpp
src/board/UBBoardView.cpp
+1
-4
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+2
-2
UBGraphicsWidgetItem.cpp
src/domain/UBGraphicsWidgetItem.cpp
+1
-3
No files found.
src/board/UBBoardView.cpp
View file @
c28c9718
...
@@ -308,7 +308,6 @@ UBBoardView::event (QEvent * e)
...
@@ -308,7 +308,6 @@ UBBoardView::event (QEvent * e)
if
(
gestureEvent
)
if
(
gestureEvent
)
{
{
QSwipeGesture
*
swipe
=
dynamic_cast
<
QSwipeGesture
*>
(
gestureEvent
->
gesture
(
Qt
::
SwipeGesture
));
QSwipeGesture
*
swipe
=
dynamic_cast
<
QSwipeGesture
*>
(
gestureEvent
->
gesture
(
Qt
::
SwipeGesture
));
if
(
swipe
)
if
(
swipe
)
{
{
if
(
swipe
->
horizontalDirection
()
==
QSwipeGesture
::
Left
)
if
(
swipe
->
horizontalDirection
()
==
QSwipeGesture
::
Left
)
...
@@ -363,9 +362,7 @@ void UBBoardView::tabletEvent (QTabletEvent * event)
...
@@ -363,9 +362,7 @@ void UBBoardView::tabletEvent (QTabletEvent * event)
QPointF
scenePos
=
viewportTransform
().
inverted
().
map
(
tabletPos
);
QPointF
scenePos
=
viewportTransform
().
inverted
().
map
(
tabletPos
);
qreal
pressure
=
1.0
;
qreal
pressure
=
1.0
;
if
(((
currentTool
==
UBStylusTool
::
Pen
||
currentTool
==
UBStylusTool
::
Line
)
if
(((
currentTool
==
UBStylusTool
::
Pen
||
currentTool
==
UBStylusTool
::
Line
)
&&
mPenPressureSensitive
)
||
(
currentTool
==
UBStylusTool
::
Marker
&&
mMarkerPressureSensitive
))
&&
mPenPressureSensitive
)
||
(
currentTool
==
UBStylusTool
::
Marker
&&
mMarkerPressureSensitive
))
pressure
=
event
->
pressure
();
pressure
=
event
->
pressure
();
...
...
src/domain/UBGraphicsScene.cpp
View file @
c28c9718
...
@@ -582,8 +582,8 @@ bool UBGraphicsScene::inputDeviceRelease()
...
@@ -582,8 +582,8 @@ bool UBGraphicsScene::inputDeviceRelease()
addItem
(
pStrokes
);
addItem
(
pStrokes
);
mDrawWithCompass
=
false
;
mDrawWithCompass
=
false
;
}
else
if
(
mCurrentStroke
)
}
{
else
if
(
mCurrentStroke
)
{
UBGraphicsStrokesGroup
*
pStrokes
=
new
UBGraphicsStrokesGroup
();
UBGraphicsStrokesGroup
*
pStrokes
=
new
UBGraphicsStrokesGroup
();
// Remove the strokes that were just drawn here and replace them by a stroke item
// Remove the strokes that were just drawn here and replace them by a stroke item
...
...
src/domain/UBGraphicsWidgetItem.cpp
View file @
c28c9718
...
@@ -563,10 +563,8 @@ void UBGraphicsWidgetItem::injectInlineJavaScript()
...
@@ -563,10 +563,8 @@ void UBGraphicsWidgetItem::injectInlineJavaScript()
void
UBGraphicsWidgetItem
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
void
UBGraphicsWidgetItem
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
{
{
if
(
!
scene
()
||
!
scene
()
->
renderingContext
())
return
;
if
(
scene
()
->
renderingContext
()
!=
UBGraphicsScene
::
Screen
)
if
(
scene
()
&&
scene
()
->
renderingContext
()
!=
UBGraphicsScene
::
Screen
)
{
{
painter
->
drawPixmap
(
0
,
0
,
snapshot
());
painter
->
drawPixmap
(
0
,
0
,
snapshot
());
}
}
...
...
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