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
1b329518
Commit
1b329518
authored
Sep 02, 2013
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storkes realized using the ruler and the triangle doesn't support pressure
parent
20ca1383
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
UBGraphicsRuler.cpp
src/tools/UBGraphicsRuler.cpp
+4
-2
UBGraphicsTriangle.cpp
src/tools/UBGraphicsTriangle.cpp
+2
-1
No files found.
src/tools/UBGraphicsRuler.cpp
View file @
1b329518
...
...
@@ -447,9 +447,11 @@ UBGraphicsScene* UBGraphicsRuler::scene() const
void
UBGraphicsRuler
::
StartLine
(
const
QPointF
&
scenePos
,
qreal
width
)
{
Q_UNUSED
(
width
);
QPointF
itemPos
=
mapFromScene
(
scenePos
);
mStrokeWidth
=
width
;
mStrokeWidth
=
UBDrawingController
::
drawingController
()
->
currentToolWidth
()
;
qreal
y
;
...
...
@@ -461,7 +463,7 @@ void UBGraphicsRuler::StartLine(const QPointF& scenePos, qreal width)
else
{
drawLineDirection
=
1
;
y
=
rect
().
y
()
-
w
idth
/
2
;
y
=
rect
().
y
()
-
mStrokeW
idth
/
2
;
}
if
(
itemPos
.
x
()
<
rect
().
x
()
+
sLeftEdgeMargin
)
...
...
src/tools/UBGraphicsTriangle.cpp
View file @
1b329518
...
...
@@ -854,8 +854,9 @@ void UBGraphicsTriangle::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
}
void
UBGraphicsTriangle
::
StartLine
(
const
QPointF
&
scenePos
,
qreal
width
)
{
Q_UNUSED
(
width
);
QPointF
itemPos
=
mapFromScene
(
scenePos
);
mStrokeWidth
=
width
;
mStrokeWidth
=
UBDrawingController
::
drawingController
()
->
currentToolWidth
()
;
qreal
y
;
...
...
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