@@ -393,19 +393,28 void tst_QBarSeries::setLabelsVisible_data() | |||||
393 |
|
393 | |||
394 | void tst_QBarSeries::setLabelsVisible() |
|
394 | void tst_QBarSeries::setLabelsVisible() | |
395 | { |
|
395 | { | |
|
396 | // labels should be invisible by default | |||
396 | foreach (QBarSet* s, m_testSets) { |
|
397 | foreach (QBarSet* s, m_testSets) { | |
397 | QVERIFY(s->labelsVisible() == false); |
|
398 | QVERIFY(s->labelsVisible() == false); | |
398 | } |
|
399 | } | |
399 |
|
400 | |||
|
401 | // turn labels to visible | |||
400 | m_barseries_with_sets->setLabelsVisible(true); |
|
402 | m_barseries_with_sets->setLabelsVisible(true); | |
401 | foreach (QBarSet* s, m_testSets) { |
|
403 | foreach (QBarSet* s, m_testSets) { | |
402 | QVERIFY(s->labelsVisible() == true); |
|
404 | QVERIFY(s->labelsVisible() == true); | |
403 | } |
|
405 | } | |
404 |
|
406 | |||
|
407 | // turn labels to invisible | |||
405 | m_barseries_with_sets->setLabelsVisible(false); |
|
408 | m_barseries_with_sets->setLabelsVisible(false); | |
406 | foreach (QBarSet* s, m_testSets) { |
|
409 | foreach (QBarSet* s, m_testSets) { | |
407 | QVERIFY(s->labelsVisible() == false); |
|
410 | QVERIFY(s->labelsVisible() == false); | |
408 | } |
|
411 | } | |
|
412 | ||||
|
413 | // without parameter, should turn labels to visible | |||
|
414 | m_barseries_with_sets->setLabelsVisible(); | |||
|
415 | foreach (QBarSet* s, m_testSets) { | |||
|
416 | QVERIFY(s->labelsVisible() == true); | |||
|
417 | } | |||
409 | } |
|
418 | } | |
410 |
|
419 | |||
411 | /* |
|
420 | /* |
General Comments 0
You need to be logged in to leave comments.
Login now