Skip to content
Permalink
Browse files

Avoid extra frame drawn around color wheel in menus

Not needed, and looks very ugly with Qt5 styling
  • Loading branch information
nyalldawson committed Mar 10, 2017
1 parent c850294 commit 236f44dd4e7411bf9bd38923fbf70db9f26c8e00
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/gui/qgscolorwidgets.cpp
@@ -405,12 +405,6 @@ void QgsColorWheel::paintEvent( QPaintEvent *event )
Q_UNUSED( event );
QPainter painter( this );

//draw a frame
QStyleOptionFrame option = QStyleOptionFrame();
option.initFrom( this );
option.state = this->hasFocus() ? QStyle::State_Active : QStyle::State_None;
style()->drawPrimitive( QStyle::PE_Frame, &option, &painter );

if ( !mWidgetImage || !mWheelImage || !mTriangleImage )
{
createImages( size() );

0 comments on commit 236f44d

Please sign in to comment.
You can’t perform that action at this time.