@@ -397,26 +397,26 void tst_QLineSeries::replace() | |||
|
397 | 397 | |
|
398 | 398 | void tst_QLineSeries::setModel_data() |
|
399 | 399 | { |
|
400 | QTest::addColumn<QStandardItemModel *>("model"); | |
|
401 | QTest::addColumn<QStandardItemModel *>("expected"); | |
|
400 | // QTest::addColumn<QStandardItemModel *>("model"); | |
|
401 | // QTest::addColumn<QStandardItemModel *>("expected"); | |
|
402 | 402 | |
|
403 | QTest::newRow("null") << 0 << 0; | |
|
404 | QTest::newRow("QStandardItemModel") << new QStandardItemModel() << new QStandardItemModel(); | |
|
403 | // QTest::newRow("null") << 0 << 0; | |
|
404 | // QTest::newRow("QStandardItemModel") << new QStandardItemModel() << new QStandardItemModel(); | |
|
405 | 405 | } |
|
406 | 406 | |
|
407 | 407 | void tst_QLineSeries::setModel() |
|
408 | 408 | { |
|
409 | QFETCH(QStandardItemModel *, model); | |
|
410 | QFETCH(QStandardItemModel *, expected); | |
|
409 | // QFETCH(QStandardItemModel *, model); | |
|
410 | // QFETCH(QStandardItemModel *, expected); | |
|
411 | 411 | |
|
412 | QLineSeries series; | |
|
413 | series.setModel(model); | |
|
412 | // QLineSeries series; | |
|
413 | // series.setModel(model); | |
|
414 | 414 | |
|
415 | QCOMPARE(series.model(), expected); | |
|
415 | // QCOMPARE(series.model(), expected); | |
|
416 | 416 | |
|
417 | // unset the model | |
|
418 | series.setModel(0); | |
|
419 | QCOMPARE(series.model(), 0); | |
|
417 | // // unset the model | |
|
418 | // series.setModel(0); | |
|
419 | // QCOMPARE(series.model(), 0); | |
|
420 | 420 | |
|
421 | 421 | } |
|
422 | 422 |
General Comments 0
You need to be logged in to leave comments.
Login now