mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-05 00:35:27 +08:00
6.5.3 clean
This commit is contained in:
@ -225,7 +225,7 @@ void tst_QAbstractProxyModel::headerDataInBounds()
|
||||
|
||||
QCOMPARE(proxy.rowCount(), 1);
|
||||
QCOMPARE(proxy.columnCount(), 5);
|
||||
QCOMPARE(headerDataChangedSpy.size(), 1);
|
||||
QTRY_COMPARE(headerDataChangedSpy.size(), 1);
|
||||
QCOMPARE(headerDataChangedSpy[0][0].value<Qt::Orientation>(), Qt::Horizontal);
|
||||
QCOMPARE(headerDataChangedSpy[0][1].value<int>(), 0);
|
||||
QCOMPARE(headerDataChangedSpy[0][2].value<int>(), 4);
|
||||
@ -266,7 +266,7 @@ void tst_QAbstractProxyModel::headerDataInBounds()
|
||||
|
||||
QCOMPARE(proxy.rowCount(), 0);
|
||||
QCOMPARE(proxy.columnCount(), 5);
|
||||
QCOMPARE(headerDataChangedSpy.size(), 2);
|
||||
QTRY_COMPARE(headerDataChangedSpy.size(), 2);
|
||||
QCOMPARE(headerDataChangedSpy[1][0].value<Qt::Orientation>(), Qt::Horizontal);
|
||||
QCOMPARE(headerDataChangedSpy[1][1].value<int>(), 0);
|
||||
QCOMPARE(headerDataChangedSpy[1][2].value<int>(), 4);
|
||||
@ -610,7 +610,7 @@ void tst_QAbstractProxyModel::sourceModelBinding()
|
||||
SubQAbstractProxyModel proxy;
|
||||
QStandardItemModel model1;
|
||||
QStandardItemModel model2;
|
||||
QTestPrivate::testReadWritePropertyBasics<QAbstractProxyModel, QAbstractItemModel *>(
|
||||
QTestPrivate::testReadWritePropertyBasics<SubQAbstractProxyModel, QAbstractItemModel *>(
|
||||
proxy, &model1, &model2, "sourceModel");
|
||||
if (QTest::currentTestFailed()) {
|
||||
qDebug("Failed model - model test");
|
||||
@ -618,7 +618,7 @@ void tst_QAbstractProxyModel::sourceModelBinding()
|
||||
}
|
||||
|
||||
proxy.setSourceModel(&model2);
|
||||
QTestPrivate::testReadWritePropertyBasics<QAbstractProxyModel, QAbstractItemModel *>(
|
||||
QTestPrivate::testReadWritePropertyBasics<SubQAbstractProxyModel, QAbstractItemModel *>(
|
||||
proxy, &model1, nullptr, "sourceModel");
|
||||
if (QTest::currentTestFailed()) {
|
||||
qDebug("Failed model - nullptr test");
|
||||
@ -626,7 +626,7 @@ void tst_QAbstractProxyModel::sourceModelBinding()
|
||||
}
|
||||
|
||||
proxy.setSourceModel(&model1);
|
||||
QTestPrivate::testReadWritePropertyBasics<QAbstractProxyModel, QAbstractItemModel *>(
|
||||
QTestPrivate::testReadWritePropertyBasics<SubQAbstractProxyModel, QAbstractItemModel *>(
|
||||
proxy, nullptr, &model2, "sourceModel");
|
||||
if (QTest::currentTestFailed()) {
|
||||
qDebug("Failed nullptr - model test");
|
||||
|
Reference in New Issue
Block a user