@@ -59,48 +59,30 @@ ModelTest::ModelTest ( QAbstractItemModel *_model, QObject *parent ) : QObject (
5959 if (!model)
6060 qFatal("%s: model must not be null", Q_FUNC_INFO);
6161
62− connect(model, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)),
63− this, SLOT(runAllTests()) );
64− connect(model, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)),
65− this, SLOT(runAllTests()) );
66− connect(model, SIGNAL(columnsInserted(QModelIndex,int,int)),
67− this, SLOT(runAllTests()) );
68− connect(model, SIGNAL(columnsRemoved(QModelIndex,int,int)),
69− this, SLOT(runAllTests()) );
70− connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
71− this, SLOT(runAllTests()) );
72− connect(model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)),
73− this, SLOT(runAllTests()) );
74− connect(model, SIGNAL(layoutAboutToBeChanged()), this, SLOT(runAllTests()) );
75− connect(model, SIGNAL(layoutChanged()), this, SLOT(runAllTests()) );
76− connect(model, SIGNAL(modelReset()), this, SLOT(runAllTests()) );
77− connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
78− this, SLOT(runAllTests()) );
79− connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
80− this, SLOT(runAllTests()) );
81− connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
82− this, SLOT(runAllTests()) );
83− connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
84− this, SLOT(runAllTests()) );
62+ connect(model, &QAbstractItemModel::columnsAboutToBeInserted, this, &ModelTest::runAllTests);
63+ connect(model, &QAbstractItemModel::columnsAboutToBeRemoved, this, &ModelTest::runAllTests);
64+ connect(model, &QAbstractItemModel::columnsInserted, this, &ModelTest::runAllTests);
65+ connect(model, &QAbstractItemModel::columnsRemoved, this, &ModelTest::runAllTests);
66+ connect(model, &QAbstractItemModel::dataChanged, this, &ModelTest::runAllTests);
67+ connect(model, &QAbstractItemModel::headerDataChanged, this, &ModelTest::runAllTests);
68+ connect(model, &QAbstractItemModel::layoutAboutToBeChanged, this, &ModelTest::runAllTests);
69+ connect(model, &QAbstractItemModel::layoutChanged, this, &ModelTest::runAllTests);
70+ connect(model, &QAbstractItemModel::modelReset, this, &ModelTest::runAllTests);
71+ connect(model, &QAbstractItemModel::rowsAboutToBeInserted, this, &ModelTest::runAllTests);
72+ connect(model, &QAbstractItemModel::rowsAboutToBeRemoved, this, &ModelTest::runAllTests);
73+ connect(model, &QAbstractItemModel::rowsInserted, this, &ModelTest::runAllTests);
74+ connect(model, &QAbstractItemModel::rowsRemoved, this, &ModelTest::runAllTests);
8575
8676 // Special checks for changes
87− connect(model, SIGNAL(layoutAboutToBeChanged()),
88− this, SLOT(layoutAboutToBeChanged()) );
89− connect(model, SIGNAL(layoutChanged()),
90− this, SLOT(layoutChanged()) );
91−
92− connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
93− this, SLOT(rowsAboutToBeInserted(QModelIndex,int,int)) );
94− connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
95− this, SLOT(rowsAboutToBeRemoved(QModelIndex,int,int)) );
96− connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
97− this, SLOT(rowsInserted(QModelIndex,int,int)) );
98− connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
99− this, SLOT(rowsRemoved(QModelIndex,int,int)) );
100− connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
101− this, SLOT(dataChanged(QModelIndex,QModelIndex)) );
102− connect(model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)),
103− this, SLOT(headerDataChanged(Qt::Orientation,int,int)) );
77+ connect(model, &QAbstractItemModel::layoutAboutToBeChanged, this, &ModelTest::layoutAboutToBeChanged);
78+ connect(model, &QAbstractItemModel::layoutChanged, this, &ModelTest::layoutChanged);
79+
80+ connect(model, &QAbstractItemModel::rowsAboutToBeInserted, this, &ModelTest::rowsAboutToBeInserted);
81+ connect(model, &QAbstractItemModel::rowsAboutToBeRemoved, this, &ModelTest::rowsAboutToBeRemoved);
82+ connect(model, &QAbstractItemModel::rowsInserted, this, &ModelTest::rowsInserted);
83+ connect(model, &QAbstractItemModel::rowsRemoved, this, &ModelTest::rowsRemoved);
84+ connect(model, &QAbstractItemModel::dataChanged, this, &ModelTest::dataChanged);
85+ connect(model, &QAbstractItemModel::headerDataChanged, this, &ModelTest::headerDataChanged);
10486
10587 runAllTests();
10688}