Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
8e2ce1b5
Commit
8e2ce1b5
authored
Aug 11, 2012
by
Mario Hlawitschka
Browse files
[FIX] fixed color pickers not being shown by setting all colors to 100% opaque
parent
8a4e0784
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/qt4gui/qt4/controlPanel/transferFunction/WTransferFunctionColorPoint.cpp
...rolPanel/transferFunction/WTransferFunctionColorPoint.cpp
+2
-0
No files found.
src/qt4gui/qt4/controlPanel/transferFunction/WTransferFunctionColorPoint.cpp
View file @
8e2ce1b5
...
...
@@ -190,6 +190,7 @@ void WTransferFunctionColorPoint::mouseDoubleClickEvent( QGraphicsSceneMouseEven
void
WTransferFunctionColorPoint
::
colorSelected
(
const
QColor
&
newcolor
)
{
color
=
newcolor
;
color
.
setAlpha
(
255
);
//< force opacity
//this->update();
if
(
_parent
)
{
...
...
@@ -295,6 +296,7 @@ void WTransferFunctionColorPoint::dropEvent( QGraphicsSceneDragDropEvent* event
if
(
event
->
mimeData
()
->
hasColor
()
)
{
color
=
qvariant_cast
<
QColor
>
(
event
->
mimeData
()
->
colorData
()
);
color
.
setAlpha
(
255
);
//< force opacity
//this->update();
if
(
_parent
)
_parent
->
dataChanged
();
...
...
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