forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.4'
Change-Id: Id13cbdf2f7047366e543c91fbe7c21a9c4759e56
This commit is contained in:
@@ -167,9 +167,8 @@ QModelIndex CallModel::index(int row, int column, const QModelIndex &parent) con
|
||||
|
||||
QVariant CallModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
//QTC_ASSERT(index.isValid() && index.model() == this, return QVariant());
|
||||
//QTC_ASSERT(index.column() >= 0 && index.column() < columnCount(index.parent()), return QVariant());
|
||||
//QTC_ASSERT(index.row() >= 0 && index.row() < rowCount(index.parent()), return QVariant());
|
||||
if (!index.isValid())
|
||||
return QVariant();
|
||||
|
||||
const FunctionCall *call = d->m_calls.at(index.row());
|
||||
if (role == Qt::DisplayRole || role == Qt::ToolTipRole) {
|
||||
|
||||
@@ -214,9 +214,8 @@ static QString shortenTemplate(QString str)
|
||||
|
||||
QVariant DataModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
//QTC_ASSERT(index.isValid() && index.model() == this, return QVariant());
|
||||
//QTC_ASSERT(index.column() >= 0 && index.column() < columnCount(index.parent()), return QVariant());
|
||||
//QTC_ASSERT(index.row() >= 0 && index.row() < rowCount(index.parent()), return QVariant());
|
||||
if (!index.isValid())
|
||||
return QVariant();
|
||||
|
||||
const Function *func = d->m_functions.at(index.row());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user