mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 08:41:01 +01:00
[escher] In table view, add method 'reloadCellAtLocation'
Change-Id: I2d662669621392698ee963a6c8e70d3d2f4ee829
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user