mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add missing returns
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8a230f9145
commit
325f47c8d8
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,7 @@ bool ColumnNameProvider::insertRows(int row, int count, const QModelIndex &paren
|
||||||
beginInsertRows(QModelIndex(), row, row);
|
beginInsertRows(QModelIndex(), row, row);
|
||||||
columnNames.append(QString());
|
columnNames.append(QString());
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ColumnNameProvider::removeRows(int row, int count, const QModelIndex &parent)
|
bool ColumnNameProvider::removeRows(int row, int count, const QModelIndex &parent)
|
||||||
|
@ -43,6 +44,7 @@ bool ColumnNameProvider::removeRows(int row, int count, const QModelIndex &paren
|
||||||
beginRemoveRows(QModelIndex(), row, row);
|
beginRemoveRows(QModelIndex(), row, row);
|
||||||
columnNames.removeAt(row);
|
columnNames.removeAt(row);
|
||||||
endRemoveRows();
|
endRemoveRows();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ColumnNameProvider::setData(const QModelIndex &index, const QVariant &value, int role)
|
bool ColumnNameProvider::setData(const QModelIndex &index, const QVariant &value, int role)
|
||||||
|
@ -51,6 +53,7 @@ bool ColumnNameProvider::setData(const QModelIndex &index, const QVariant &value
|
||||||
columnNames[index.row()] = value.toString();
|
columnNames[index.row()] = value.toString();
|
||||||
}
|
}
|
||||||
dataChanged(index, index);
|
dataChanged(index, index);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant ColumnNameProvider::data(const QModelIndex &index, int role) const
|
QVariant ColumnNameProvider::data(const QModelIndex &index, int role) const
|
||||||
|
@ -150,6 +153,7 @@ bool ColumnNameResult::setData(const QModelIndex &index, const QVariant &value,
|
||||||
columnNames[index.column()] = value.toString();
|
columnNames[index.column()] = value.toString();
|
||||||
dataChanged(index, index);
|
dataChanged(index, index);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant ColumnNameResult::data(const QModelIndex &index, int role) const
|
QVariant ColumnNameResult::data(const QModelIndex &index, int role) const
|
||||||
|
|
Loading…
Add table
Reference in a new issue