Skip to content
Permalink
Browse files

Fix more Qt5.7 warnings

  • Loading branch information
m-kuhn committed Nov 11, 2016
1 parent 054d430 commit 45617fb2928a9192b1bfcb2fb822b9186df6a650
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgswelcomepageitemsmodel.cpp
  2. +1 −1 src/gui/qgsvariableeditorwidget.cpp
@@ -39,7 +39,7 @@ void QgsWelcomePageItemDelegate::paint( QPainter* painter, const QStyleOptionVie
QPixmap icon = qvariant_cast<QPixmap>( index.data( Qt::DecorationRole ) );

QAbstractTextDocumentLayout::PaintContext ctx;
QStyleOptionViewItemV4 optionV4 = option;
QStyleOptionViewItem optionV4 = option;

QColor color;
if ( option.state & QStyle::State_Selected && option.state & QStyle::State_HasFocus )
@@ -479,7 +479,7 @@ void QgsVariableEditorTree::emitChanged()
void QgsVariableEditorTree::drawRow( QPainter* painter, const QStyleOptionViewItem& option,
const QModelIndex& index ) const
{
QStyleOptionViewItemV3 opt = option;
QStyleOptionViewItem opt = option;
QTreeWidgetItem* item = itemFromIndex( index );
if ( index.parent().isValid() )
{

0 comments on commit 45617fb

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