Skip to content

Commit 236f44d

Browse files
committed
Avoid extra frame drawn around color wheel in menus
Not needed, and looks very ugly with Qt5 styling
1 parent c850294 commit 236f44d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/gui/qgscolorwidgets.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,6 @@ void QgsColorWheel::paintEvent( QPaintEvent *event )
405405
Q_UNUSED( event );
406406
QPainter painter( this );
407407

408-
//draw a frame
409-
QStyleOptionFrame option = QStyleOptionFrame();
410-
option.initFrom( this );
411-
option.state = this->hasFocus() ? QStyle::State_Active : QStyle::State_None;
412-
style()->drawPrimitive( QStyle::PE_Frame, &option, &painter );
413-
414408
if ( !mWidgetImage || !mWheelImage || !mTriangleImage )
415409
{
416410
createImages( size() );

0 commit comments

Comments
 (0)