diff options
author | mfekari <mfekari@rim.com> | 2012-10-29 09:41:09 -0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-20 18:53:49 +0100 |
commit | 3853035a45abb87c94314ac9f61f0c454a7f0262 (patch) | |
tree | 499e82dedaae61f8da0d7108dabf1dde760a6561 /src/corelib/tools/qlocale_p.h | |
parent | 035d93a6e1cbde76d34866ffd9b39633572e6236 (diff) |
Qnx: Handle the MeasurementSystem value in QNX
Change-Id: I00837421431d82aa831b785d3effb0920b4541f3
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qlocale_p.h')
-rw-r--r-- | src/corelib/tools/qlocale_p.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/corelib/tools/qlocale_p.h b/src/corelib/tools/qlocale_p.h index ee2c7f5bee..42ef00f821 100644 --- a/src/corelib/tools/qlocale_p.h +++ b/src/corelib/tools/qlocale_p.h @@ -59,6 +59,10 @@ #include "qlocale.h" +#if defined(Q_OS_QNX) +#include "qsocketnotifier.h" +#endif + QT_BEGIN_NAMESPACE #ifndef QT_NO_SYSTEMLOCALE @@ -347,6 +351,25 @@ inline char QLocalePrivate::digitToCLocale(QChar in) const return 0; } +#if defined(Q_OS_QNX) +class QBBLocaleData: public QObject +{ + Q_OBJECT +public: + QBBLocaleData(); + virtual ~QBBLocaleData(); + void readPPSLocale(); + +public Q_SLOTS: + void updateMesurementSystem(); + +public: + uint ppsMeasurement; + QSocketNotifier *ppsNotifier; + int ppsFd; +}; +#endif + QString qt_readEscapedFormatString(const QString &format, int *idx); bool qt_splitLocaleName(const QString &name, QString &lang, QString &script, QString &cntry); int qt_repeatCount(const QString &s, int i); |