Commit 8e2ce1b5 authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[FIX] fixed color pickers not being shown by setting all colors to 100% opaque

parent 8a4e0784
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment