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);
|
||||
columnNames.append(QString());
|
||||
endInsertRows();
|
||||
return true;
|
||||
}
|
||||
|
||||
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);
|
||||
columnNames.removeAt(row);
|
||||
endRemoveRows();
|
||||
return true;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
dataChanged(index, index);
|
||||
return true;
|
||||
}
|
||||
|
||||
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();
|
||||
dataChanged(index, index);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
QVariant ColumnNameResult::data(const QModelIndex &index, int role) const
|
||||
|
|
Loading…
Add table
Reference in a new issue