Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Step
Commits
d7465263
Commit
d7465263
authored
May 13, 2009
by
Vladimir Kuznetsov
Browse files
Backported a bugfix from r967684.
svn path=/branches/KDE/4.2/kdeedu/step/; revision=967685
parent
71452ae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
step/springgraphics.cc
View file @
d7465263
...
...
@@ -122,6 +122,7 @@ void SpringGraphicsItem::paint(QPainter* painter, const QStyleOptionGraphicsItem
painter
->
drawLine
(
QLineF
(
i
-
1
,
seq
[(
i
-
1
)
&
3
],
i
,
seq
[
i
&
3
]
));
}
painter
->
drawLine
(
QLineF
(
n
,
seq
[
n
&
3
],
_rnorm
/
_rscale
,
0
));
painter
->
scale
(
1
/
_rscale
,
1
/
_radius
);
}
else
{
painter
->
drawLine
(
QLineF
(
0
,
0
,
_rnorm
,
0
));
}
...
...
@@ -130,7 +131,6 @@ void SpringGraphicsItem::paint(QPainter* painter, const QStyleOptionGraphicsItem
painter
->
setRenderHint
(
QPainter
::
Antialiasing
,
true
);
painter
->
setPen
(
QPen
(
SELECTION_COLOR
,
0
,
Qt
::
DashLine
));
double
m
=
SELECTION_MARGIN
/
currentViewScale
();
painter
->
scale
(
1
/
_rscale
,
1
/
_radius
);
painter
->
drawRect
(
QRectF
(
-
m
,
-
_radius
-
m
,
_rnorm
+
m
*
2
,
(
_radius
+
m
)
*
2
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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