Skip to content
Permalink
Browse files

Fix travis

  • Loading branch information
nyalldawson committed Jan 7, 2019
1 parent 2b4482f commit 63204cfdb51b54f88d8a82b30aafa38e1d4cb9d6
@@ -39,6 +39,9 @@ The ``render`` argument indicates whether the category should initially be rende
%End

QgsRendererCategory( const QgsRendererCategory &cat );
%Docstring
Copy constructor.
%End

QVariant value() const;
%Docstring
@@ -54,6 +54,9 @@ class CORE_EXPORT QgsRendererCategory
*/
QgsRendererCategory( const QVariant &value, QgsSymbol *symbol SIP_TRANSFER, const QString &label, bool render = true );

/**
* Copy constructor.
*/
QgsRendererCategory( const QgsRendererCategory &cat );
QgsRendererCategory &operator=( QgsRendererCategory cat );

@@ -248,9 +248,9 @@ void TestQgsCategorizedRendererWidget::model()
QCOMPARE( model->data( model->index( 1, 2 ), Qt::DisplayRole ).toString(), QStringLiteral( "list" ) );
QCOMPARE( model->data( model->index( 2, 2 ), Qt::DisplayRole ).toString(), QStringLiteral( "dd" ) );

QCOMPARE( model->data( model->index( 0, 0 ), Qt::CheckStateRole ).toInt(), Qt::Checked );
QCOMPARE( model->data( model->index( 1, 0 ), Qt::CheckStateRole ).toInt(), Qt::Checked );
QCOMPARE( model->data( model->index( 2, 0 ), Qt::CheckStateRole ).toInt(), Qt::Unchecked );
QCOMPARE( model->data( model->index( 0, 0 ), Qt::CheckStateRole ).toInt(), static_cast< int >( Qt::Checked ) );
QCOMPARE( model->data( model->index( 1, 0 ), Qt::CheckStateRole ).toInt(), static_cast< int >( Qt::Checked ) );
QCOMPARE( model->data( model->index( 2, 0 ), Qt::CheckStateRole ).toInt(), static_cast< int >( Qt::Unchecked ) );
}

QGSTEST_MAIN( TestQgsCategorizedRendererWidget )

0 comments on commit 63204cf

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