Skip to content
Permalink
Browse files

Fix Qt 5.7 build warnings

  • Loading branch information
m-kuhn committed Nov 11, 2016
1 parent 156fce9 commit 35d106bf648f7e9b21a0be9286b8b3abd7b41460
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/gui/qgscolorwidgets.cpp
  2. +1 −1 src/gui/qgsgradientstopeditor.cpp
@@ -409,7 +409,7 @@ void QgsColorWheel::paintEvent( QPaintEvent *event )
QPainter painter( this );

//draw a frame
QStyleOptionFrameV3 option = QStyleOptionFrameV3();
QStyleOptionFrame option = QStyleOptionFrame();
option.initFrom( this );
option.state = this->hasFocus() ? QStyle::State_Active : QStyle::State_None;
style()->drawPrimitive( QStyle::PE_Frame, &option, &painter );
@@ -774,7 +774,7 @@ void QgsColorBox::paintEvent( QPaintEvent *event )
Q_UNUSED( event );
QPainter painter( this );

QStyleOptionFrameV3 option;
QStyleOptionFrame option;
option.initFrom( this );
option.state = hasFocus() ? QStyle::State_Active : QStyle::State_None;
style()->drawPrimitive( QStyle::PE_Frame, &option, &painter );
@@ -1020,7 +1020,7 @@ void QgsColorRampWidget::paintEvent( QPaintEvent *event )
if ( mShowFrame )
{
//draw frame
QStyleOptionFrameV3 option;
QStyleOptionFrame option;
option.initFrom( this );
option.state = hasFocus() ? QStyle::State_KeyboardFocusChange : QStyle::State_None;
style()->drawPrimitive( QStyle::PE_Frame, &option, &painter );
@@ -83,7 +83,7 @@ void QgsGradientStopEditor::paintEvent( QPaintEvent *event )
rect().height() - MARGIN_BOTTOM );

//draw frame
QStyleOptionFrameV3 option;
QStyleOptionFrame option;
option.initFrom( this );
option.state = hasFocus() ? QStyle::State_KeyboardFocusChange : QStyle::State_None;
option.rect = frameRect;

0 comments on commit 35d106b

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