mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Fix travis
This commit is contained in:
parent
2b4482fab4
commit
63204cfdb5
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user