summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-04-21 10:48:00 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-04-21 10:48:00 (GMT)
commiteb1411f550ab131162fd61bf81e9b22e0a75e26a (patch)
treedd6cc923db2d309d93a9aa07789de8f12393360f
parent57f8033b7c1b26dfc91e257d1aaf9266ae67cc8d (diff)
downloadQt-eb1411f550ab131162fd61bf81e9b22e0a75e26a.zip
Qt-eb1411f550ab131162fd61bf81e9b22e0a75e26a.tar.gz
Qt-eb1411f550ab131162fd61bf81e9b22e0a75e26a.tar.bz2
QTableWidget header items not re-translated by QUiLoader.
Task: 251691 Translate correct header item (fix to new feature). Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-rw-r--r--tools/designer/src/uitools/quiloader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/designer/src/uitools/quiloader.cpp b/tools/designer/src/uitools/quiloader.cpp
index d3d1d54..67bd29c 100644
--- a/tools/designer/src/uitools/quiloader.cpp
+++ b/tools/designer/src/uitools/quiloader.cpp
@@ -259,9 +259,9 @@ public:
const int row_cnt = tablew->rowCount();
const int col_cnt = tablew->columnCount();
for (int j = 0; j < col_cnt; ++j)
- reTranslateTableItem(tablew->verticalHeaderItem(j), m_className);
+ reTranslateTableItem(tablew->horizontalHeaderItem(j), m_className);
for (int i = 0; i < row_cnt; ++i) {
- reTranslateTableItem(tablew->horizontalHeaderItem(i), m_className);
+ reTranslateTableItem(tablew->verticalHeaderItem(i), m_className);
for (int j = 0; j < col_cnt; ++j)
reTranslateTableItem(tablew->item(i, j), m_className);
}