forked from qt-creator/qt-creator
AutoTest: Do not duplicate member in derived class
Change-Id: Ia88a484f30b2c5d51fca4a2da8464a01007a0d47 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -400,8 +400,7 @@ QMultiMap<QString, int> TestTreeModel::gtestNamesAndSets() const
|
||||
/***************************** Sort/Filter Model **********************************/
|
||||
|
||||
TestTreeSortFilterModel::TestTreeSortFilterModel(TestTreeModel *sourceModel, QObject *parent)
|
||||
: QSortFilterProxyModel(parent),
|
||||
m_sourceModel(sourceModel)
|
||||
: QSortFilterProxyModel(parent)
|
||||
{
|
||||
setSourceModel(sourceModel);
|
||||
}
|
||||
@@ -451,7 +450,7 @@ bool TestTreeSortFilterModel::lessThan(const QModelIndex &left, const QModelInde
|
||||
|
||||
bool TestTreeSortFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
|
||||
{
|
||||
QModelIndex index = m_sourceModel->index(sourceRow, 0,sourceParent);
|
||||
const QModelIndex index = sourceModel()->index(sourceRow, 0,sourceParent);
|
||||
if (!index.isValid())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user