Skip to content

Commit

Permalink
Avoid extra frame drawn around color wheel in menus
Browse files Browse the repository at this point in the history
Not needed, and looks very ugly with Qt5 styling
  • Loading branch information
nyalldawson committed Mar 10, 2017
1 parent c850294 commit 236f44d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/gui/qgscolorwidgets.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit 236f44d

Please sign in to comment.