forked from qt-creator/qt-creator
Debugger: De-slot
Most Qt4 connects are gone. Change-Id: Ie74cfb11fc4b4c531f9e22c95a4d18336e1c29e8 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
fc59423f2f
commit
7d31cb0e18
@@ -37,44 +37,44 @@ ModelTest::ModelTest(QAbstractItemModel *_model, QObject *parent) : QObject(pare
|
||||
{
|
||||
Q_ASSERT(model);
|
||||
|
||||
connect(model, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(columnsInserted(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(columnsRemoved(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(layoutAboutToBeChanged()), this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(layoutChanged()), this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(modelReset()), this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
|
||||
this, SLOT(runAllTests()));
|
||||
connect(model, &QAbstractItemModel::columnsAboutToBeInserted,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::columnsAboutToBeRemoved,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::columnsInserted,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::columnsRemoved,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::dataChanged,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::headerDataChanged,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::layoutAboutToBeChanged, this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::layoutChanged, this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::modelReset, this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::rowsAboutToBeInserted,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::rowsAboutToBeRemoved,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::rowsInserted,
|
||||
this, &ModelTest::runAllTests);
|
||||
connect(model, &QAbstractItemModel::rowsRemoved,
|
||||
this, &ModelTest::runAllTests);
|
||||
|
||||
// Special checks for inserting/removing
|
||||
connect(model, SIGNAL(layoutAboutToBeChanged()),
|
||||
this, SLOT(layoutAboutToBeChanged()));
|
||||
connect(model, SIGNAL(layoutChanged()),
|
||||
this, SLOT(layoutChanged()));
|
||||
connect(model, &QAbstractItemModel::layoutAboutToBeChanged,
|
||||
this, &ModelTest::layoutAboutToBeChanged);
|
||||
connect(model, &QAbstractItemModel::layoutChanged,
|
||||
this, &ModelTest::layoutChanged);
|
||||
|
||||
connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
|
||||
this, SLOT(rowsAboutToBeInserted(QModelIndex,int,int)));
|
||||
connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
|
||||
this, SLOT(rowsAboutToBeRemoved(QModelIndex,int,int)));
|
||||
connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
|
||||
this, SLOT(rowsInserted(QModelIndex,int,int)));
|
||||
connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
|
||||
this, SLOT(rowsRemoved(QModelIndex,int,int)));
|
||||
connect(model, &QAbstractItemModel::rowsAboutToBeInserted,
|
||||
this, &ModelTest::rowsAboutToBeInserted);
|
||||
connect(model, &QAbstractItemModel::rowsAboutToBeRemoved,
|
||||
this, &ModelTest::rowsAboutToBeRemoved);
|
||||
connect(model, &QAbstractItemModel::rowsInserted,
|
||||
this, &ModelTest::rowsInserted);
|
||||
connect(model, &QAbstractItemModel::rowsRemoved,
|
||||
this, &ModelTest::rowsRemoved);
|
||||
|
||||
runAllTests();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user