425
425
if (m_proxyModel)
427
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)),
428
this, SLOT(testMappings()));
429
disconnect(m_proxyModel, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
430
this, SLOT(testMappings()));
431
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
432
this, SLOT(testMappings()));
433
disconnect(m_proxyModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
427
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
428
this, SLOT(testMappings()));
429
disconnect(m_proxyModel, SIGNAL(rowsInserted(QModelIndex,int,int)),
430
this, SLOT(testMappings()));
431
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
432
this, SLOT(testMappings()));
433
disconnect(m_proxyModel, SIGNAL(rowsRemoved(QModelIndex,int,int)),
434
434
this, SLOT(testMappings()));
435
435
disconnect(m_proxyModel, SIGNAL(layoutAboutToBeChanged()),
436
436
this, SLOT(testMappings()));
437
437
disconnect(m_proxyModel, SIGNAL(layoutChanged()),
438
438
this, SLOT(testMappings()));
439
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(const QModelIndex &, int, int,const QModelIndex &, int)),
440
this, SLOT(testMappings()));
441
disconnect(m_proxyModel, SIGNAL(rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)),
442
this, SLOT(testMappings()));
443
disconnect(m_proxyModel, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
439
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)),
440
this, SLOT(testMappings()));
441
disconnect(m_proxyModel, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)),
442
this, SLOT(testMappings()));
443
disconnect(m_proxyModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
444
444
this, SLOT(testMappings()));
446
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)),
447
this, SLOT(verifyModel(const QModelIndex &, int, int)));
448
disconnect(m_proxyModel, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
449
this, SLOT(verifyModel(const QModelIndex &, int, int)));
450
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
451
this, SLOT(verifyModel(const QModelIndex &, int, int)));
452
disconnect(m_proxyModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
453
this, SLOT(verifyModel(const QModelIndex &, int, int)));
454
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(const QModelIndex &, int, int,const QModelIndex &, int)),
455
this, SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
456
disconnect(m_proxyModel, SIGNAL(rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)),
457
this, SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
458
disconnect(m_proxyModel, SIGNAL(columnsAboutToBeInserted(const QModelIndex &, int, int)),
459
this, SLOT(verifyModel(const QModelIndex &, int, int)));
460
disconnect(m_proxyModel, SIGNAL(columnsInserted(const QModelIndex &, int, int)),
461
this, SLOT(verifyModel(const QModelIndex &, int, int)));
462
disconnect(m_proxyModel, SIGNAL(columnsAboutToBeRemoved(const QModelIndex &, int, int)),
463
this, SLOT(verifyModel(const QModelIndex &, int, int)));
464
disconnect(m_proxyModel, SIGNAL(columnsRemoved(const QModelIndex &, int, int)),
465
this, SLOT(verifyModel(const QModelIndex &, int, int)));
466
disconnect(m_proxyModel, SIGNAL(columnsAboutToBeMoved(const QModelIndex &, int, int,const QModelIndex &, int)),
467
this, SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
468
disconnect(m_proxyModel, SIGNAL(columnsMoved(const QModelIndex &, int, int, const QModelIndex &, int)),
469
this, SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
470
disconnect(m_proxyModel, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
471
this, SLOT(verifyModel(const QModelIndex &, const QModelIndex &)));
446
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
447
this, SLOT(verifyModel(QModelIndex,int,int)));
448
disconnect(m_proxyModel, SIGNAL(rowsInserted(QModelIndex,int,int)),
449
this, SLOT(verifyModel(QModelIndex,int,int)));
450
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
451
this, SLOT(verifyModel(QModelIndex,int,int)));
452
disconnect(m_proxyModel, SIGNAL(rowsRemoved(QModelIndex,int,int)),
453
this, SLOT(verifyModel(QModelIndex,int,int)));
454
disconnect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)),
455
this, SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
456
disconnect(m_proxyModel, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)),
457
this, SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
458
disconnect(m_proxyModel, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)),
459
this, SLOT(verifyModel(QModelIndex,int,int)));
460
disconnect(m_proxyModel, SIGNAL(columnsInserted(QModelIndex,int,int)),
461
this, SLOT(verifyModel(QModelIndex,int,int)));
462
disconnect(m_proxyModel, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)),
463
this, SLOT(verifyModel(QModelIndex,int,int)));
464
disconnect(m_proxyModel, SIGNAL(columnsRemoved(QModelIndex,int,int)),
465
this, SLOT(verifyModel(QModelIndex,int,int)));
466
disconnect(m_proxyModel, SIGNAL(columnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)),
467
this, SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
468
disconnect(m_proxyModel, SIGNAL(columnsMoved(QModelIndex,int,int,QModelIndex,int)),
469
this, SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
470
disconnect(m_proxyModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
471
this, SLOT(verifyModel(QModelIndex,QModelIndex)));
474
474
m_proxyModel = proxyModel;
487
487
QVERIFY(m_modelSpy->isEmpty());
490
connect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)),
491
SLOT(testMappings()));
492
connect(m_proxyModel, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
493
SLOT(testMappings()));
494
connect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
495
SLOT(testMappings()));
496
connect(m_proxyModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
490
connect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
491
SLOT(testMappings()));
492
connect(m_proxyModel, SIGNAL(rowsInserted(QModelIndex,int,int)),
493
SLOT(testMappings()));
494
connect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
495
SLOT(testMappings()));
496
connect(m_proxyModel, SIGNAL(rowsRemoved(QModelIndex,int,int)),
497
497
SLOT(testMappings()));
498
498
connect(m_proxyModel, SIGNAL(layoutAboutToBeChanged()),
499
499
SLOT(testMappings()));
500
500
connect(m_proxyModel, SIGNAL(layoutChanged()),
501
501
SLOT(testMappings()));
502
connect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(const QModelIndex &, int, int,const QModelIndex &, int)),
503
SLOT(testMappings()));
504
connect(m_proxyModel, SIGNAL(rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)),
505
SLOT(testMappings()));
506
connect(m_proxyModel, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
502
connect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)),
503
SLOT(testMappings()));
504
connect(m_proxyModel, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)),
505
SLOT(testMappings()));
506
connect(m_proxyModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
507
507
SLOT(testMappings()));
509
connect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(const QModelIndex &, int, int)),
510
SLOT(verifyModel(const QModelIndex &, int, int)));
511
connect(m_proxyModel, SIGNAL(rowsInserted(const QModelIndex &, int, int)),
512
SLOT(verifyModel(const QModelIndex &, int, int)));
513
connect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(const QModelIndex &, int, int)),
514
SLOT(verifyModel(const QModelIndex &, int, int)));
515
connect(m_proxyModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
516
SLOT(verifyModel(const QModelIndex &, int, int)));
517
connect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(const QModelIndex &, int, int,const QModelIndex &, int)),
518
SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
519
connect(m_proxyModel, SIGNAL(rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)),
520
SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
521
connect(m_proxyModel, SIGNAL(columnsAboutToBeInserted(const QModelIndex &, int, int)),
522
SLOT(verifyModel(const QModelIndex &, int, int)));
523
connect(m_proxyModel, SIGNAL(columnsInserted(const QModelIndex &, int, int)),
524
SLOT(verifyModel(const QModelIndex &, int, int)));
525
connect(m_proxyModel, SIGNAL(columnsAboutToBeRemoved(const QModelIndex &, int, int)),
526
SLOT(verifyModel(const QModelIndex &, int, int)));
527
connect(m_proxyModel, SIGNAL(columnsRemoved(const QModelIndex &, int, int)),
528
SLOT(verifyModel(const QModelIndex &, int, int)));
529
connect(m_proxyModel, SIGNAL(columnsAboutToBeMoved(const QModelIndex &, int, int,const QModelIndex &, int)),
530
SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
531
connect(m_proxyModel, SIGNAL(columnsMoved(const QModelIndex &, int, int, const QModelIndex &, int)),
532
SLOT(verifyModel(const QModelIndex &, int, int, const QModelIndex &, int)));
533
connect(m_proxyModel, SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)),
534
SLOT(verifyModel(const QModelIndex &, const QModelIndex &)));
509
connect(m_proxyModel, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
510
SLOT(verifyModel(QModelIndex,int,int)));
511
connect(m_proxyModel, SIGNAL(rowsInserted(QModelIndex,int,int)),
512
SLOT(verifyModel(QModelIndex,int,int)));
513
connect(m_proxyModel, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
514
SLOT(verifyModel(QModelIndex,int,int)));
515
connect(m_proxyModel, SIGNAL(rowsRemoved(QModelIndex,int,int)),
516
SLOT(verifyModel(QModelIndex,int,int)));
517
connect(m_proxyModel, SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)),
518
SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
519
connect(m_proxyModel, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)),
520
SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
521
connect(m_proxyModel, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)),
522
SLOT(verifyModel(QModelIndex,int,int)));
523
connect(m_proxyModel, SIGNAL(columnsInserted(QModelIndex,int,int)),
524
SLOT(verifyModel(QModelIndex,int,int)));
525
connect(m_proxyModel, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)),
526
SLOT(verifyModel(QModelIndex,int,int)));
527
connect(m_proxyModel, SIGNAL(columnsRemoved(QModelIndex,int,int)),
528
SLOT(verifyModel(QModelIndex,int,int)));
529
connect(m_proxyModel, SIGNAL(columnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)),
530
SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
531
connect(m_proxyModel, SIGNAL(columnsMoved(QModelIndex,int,int,QModelIndex,int)),
532
SLOT(verifyModel(QModelIndex,int,int,QModelIndex,int)));
533
connect(m_proxyModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
534
SLOT(verifyModel(QModelIndex,QModelIndex)));