Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
8a86265c
Commit
8a86265c
authored
Aug 13, 2010
by
Thomas Hartmann
Browse files
QuickToolBar: bugfix for GradientLine
This was just plain wrong. A negative offset makes no sense in any case.
parent
b372f9db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/qmleditorwidgets/gradientline.cpp
View file @
8a86265c
...
...
@@ -289,7 +289,7 @@ void GradientLine::mouseMoveEvent(QMouseEvent *event)
if
((
newStop
>=
0
)
&&
(
newStop
<=
1
))
m_stops
[
currentColorIndex
()]
=
newStop
;
m_yOffset
+=
event
->
pos
().
y
()
-
m_dragStart
.
y
();
if
(
m_yOffset
>
0
||
m_useGradient
)
{
//deleting only in base state
if
(
m_yOffset
>
0
)
{
//deleting only in base state
m_yOffset
=
0
;
}
else
if
((
m_yOffset
<
-
12
)
&&
(
currentColorIndex
())
!=
0
&&
(
currentColorIndex
()
<
m_stops
.
size
()
-
1
))
{
m_yOffset
=
0
;
...
...
Write
Preview
Supports
Markdown
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