forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.6'
Conflicts: qtcreator.qbp src/plugins/qtsupport/baseqtversion.cpp src/tools/tools.pro Change-Id: I43c391328ae747b3dc566f9db2384fedc1a6d0a5
This commit is contained in:
@@ -87,7 +87,7 @@ QModelIndex ErrorListModel::index(int row, int column, const QModelIndex &parent
|
||||
QTC_ASSERT(parent.model() == this, qt_noop());
|
||||
return QModelIndex();
|
||||
}
|
||||
return createIndex(row, column, 0);
|
||||
return createIndex(row, column);
|
||||
}
|
||||
|
||||
QModelIndex ErrorListModel::parent(const QModelIndex &child) const
|
||||
|
||||
@@ -192,7 +192,7 @@ QModelIndex StackModel::parent(const QModelIndex &child) const
|
||||
{
|
||||
QTC_ASSERT(!child.isValid() || child.model() == this, return QModelIndex());
|
||||
|
||||
if (child.internalId() == -1)
|
||||
if (quintptr(child.internalId()) == quintptr(-1))
|
||||
return QModelIndex();
|
||||
return createIndex(child.internalId(), 0, -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user