aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquicktableview/tst_qquicktableview.cpp')
-rw-r--r--tests/auto/quick/qquicktableview/tst_qquicktableview.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
index 8caced4396..a725a125c2 100644
--- a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
+++ b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
@@ -38,7 +38,6 @@
#include <QtQml/qqmlincubator.h>
#include <QtQml/private/qqmlobjectmodel_p.h>
#include <QtQml/private/qqmllistmodel_p.h>
-#include <QtQml/private/qqmldelegatemodel_p.h>
#include "testmodel.h"
@@ -512,16 +511,11 @@ void tst_QQuickTableView::checkInitialAttachedProperties()
const int contextIndex = context->contextProperty("index").toInt();
const QPoint contextCell = getContextRowAndColumn(item.data());
const QString contextModelData = context->contextProperty("modelData").toString();
- const QQmlDelegateModelAttached *delegateModelAttached =
- static_cast<QQmlDelegateModelAttached *>(
- qmlAttachedPropertiesObject<QQmlDelegateModel>(item));
- const int contextItemsIndex = delegateModelAttached->property("itemsIndex").toInt();
QCOMPARE(contextCell.y(), cell.y());
QCOMPARE(contextCell.x(), cell.x());
QCOMPARE(contextIndex, index);
QCOMPARE(contextModelData, QStringLiteral("%1").arg(cell.y()));
- QCOMPARE(contextItemsIndex, index);
}
}