[escher] In table view, add method 'reloadCellAtLocation'

Change-Id: I2d662669621392698ee963a6c8e70d3d2f4ee829
This commit is contained in:
Émilie Feral
2017-06-02 16:56:41 +02:00
parent 0559661a07
commit f43b307856
5 changed files with 13 additions and 3 deletions

View File

@@ -54,6 +54,10 @@ void TableView::reloadData() {
layoutSubviews();
}
void TableView::reloadCellAtLocation(int i, int j) {
m_contentView.reloadCellAtLocation(i, j);
}
/* TableView::ContentView */
TableView::ContentView::ContentView(TableView * tableView, TableViewDataSource * dataSource, KDCoordinate horizontalCellOverlapping, KDCoordinate verticalCellOverlapping) :
@@ -120,6 +124,10 @@ void TableView::ContentView::scrollToCell(int x, int y) const {
m_tableView->setContentOffset(KDPoint(contentOffsetX, contentOffsetY));
}
void TableView::ContentView::reloadCellAtLocation(int i, int j) {
m_dataSource->willDisplayCellAtLocation(cellAtLocation(i, j), i, j);
}
int TableView::ContentView::typeOfSubviewAtIndex(int index) const {
assert(index >= 0);
int i = absoluteColumnNumberFromSubviewIndex(index);