Skip to content
Permalink
Browse files
add read-only test (#43515)
* add read-only test

following suggestion in #43509

* Update testqgsrelationreferencewidget.cpp

* Fix test

Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
3nids and m-kuhn committed Jun 5, 2021
1 parent bc34d15 commit 0be65942992dff4dee036082143fe70a7f10380f
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/src/gui/testqgsrelationreferencewidget.cpp
@@ -572,6 +572,9 @@ void TestQgsRelationReferenceWidget::testIdentifyOnMap()
w.featureIdentified( feature );
QCOMPARE( w.mComboBox->currentData( Qt::DisplayRole ).toInt(), 10 );

w.setReadOnlySelector( true );
QVERIFY( !w.mComboBox->isEnabled() );

mLayer1->rollBack();
}

0 comments on commit 0be6594

Please sign in to comment.