summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-25 15:02:33 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-25 15:03:34 (GMT)
commit5396b8e11ac6e802fdcb9ff0ad6ef2cd64aea260 (patch)
treef695d1bfd08d8ee7799eba697024a992609090ab
parente5db8cdccdb032d82b5562abded95d1dbd743264 (diff)
downloadQt-5396b8e11ac6e802fdcb9ff0ad6ef2cd64aea260.zip
Qt-5396b8e11ac6e802fdcb9ff0ad6ef2cd64aea260.tar.gz
Qt-5396b8e11ac6e802fdcb9ff0ad6ef2cd64aea260.tar.bz2
QTableWidget didn't repaint a cell after takeItem
The problem was that the mode was not emitting dataChanged. Note: This still needs to be autotested. Task-number: 234641 Reviewed-by: ogoffart
-rw-r--r--src/gui/itemviews/qtablewidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qtablewidget.cpp b/src/gui/itemviews/qtablewidget.cpp
index d44c11c..b7c9703 100644
--- a/src/gui/itemviews/qtablewidget.cpp
+++ b/src/gui/itemviews/qtablewidget.cpp
@@ -226,6 +226,8 @@ QTableWidgetItem *QTableModel::takeItem(int row, int column)
itm->view = 0;
itm->d->id = -1;
tableItems[i] = 0;
+ QModelIndex ind = index(itm);
+ emit dataChanged(ind, ind);
}
return itm;
}