summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2010-02-17 11:04:07 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2010-02-17 11:10:04 (GMT)
commit729d67cb35830a812c8c41a02a7b16a077dc14fb (patch)
tree67d65ea6a84dd2b3708d933878593341ab310880 /src/gui/itemviews
parent10b4dee4b0e196646e0bb4aab37dae6eaca8326e (diff)
downloadQt-729d67cb35830a812c8c41a02a7b16a077dc14fb.zip
Qt-729d67cb35830a812c8c41a02a7b16a077dc14fb.tar.gz
Qt-729d67cb35830a812c8c41a02a7b16a077dc14fb.tar.bz2
Support for dynamic localization in Symbian softkeys.
This commit adds support for dynamic i.e. runtime localization of S60 softkeys. Note that translations are not provided yet with qt.sis (QTBUG-4919), meaning that localization does not actually happen unless application developer provides its own translation (including translation for softkeys). Task-number: QTBUG-6785 Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index cbd9a8a..adf3ce3 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -1540,6 +1540,11 @@ bool QAbstractItemView::event(QEvent *event)
case QEvent::FontChange:
d->doDelayedItemsLayout(); // the size of the items will change
break;
+#ifdef QT_SOFTKEYS_ENABLED
+ case QEvent::LanguageChange:
+ d->doneSoftKey->setText(QSoftKeyManager::standardSoftKeyText(QSoftKeyManager::DoneSoftKey));
+ break;
+#endif
default:
break;
}