[apps/escher] Remove wrong markRectAsDirty, use reloadCell instead

This commit is contained in:
Léa Saviot
2018-11-05 16:38:21 +01:00
committed by Émilie Feral
parent f47a6549b8
commit b9bf5be5f6
3 changed files with 2 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ HighlightCell * SequenceToolbox::reusableCell(int index, int type) {
void SequenceToolbox::willDisplayCellForIndex(HighlightCell * cell, int index) {
if (typeAtLocation(0, index) == 2) {
static_cast<ExpressionTableCell *>(cell)->setLayout(m_addedCellLayout[index]);
cell->reloadCell();
return;
}
MathToolbox::willDisplayCellForIndex(cell, mathToolboxIndex(index));

View File

@@ -21,7 +21,6 @@ void MessageTableCell::setHighlighted(bool highlight) {
void MessageTableCell::setMessage(I18n::Message text) {
m_messageTextView.setMessage(text);
layoutSubviews();
markRectAsDirty(bounds());
}
void MessageTableCell::setTextColor(KDColor color) {

View File

@@ -35,6 +35,7 @@ void Toolbox::willDisplayCellForIndex(HighlightCell * cell, int index) {
}
MessageTableCell * myCell = (MessageTableCell *)cell;
myCell->setMessage(messageTree->label());
myCell->reloadCell();
}
int Toolbox::typeAtLocation(int i, int j) {