QTimeZone: Fix isValidId()
authorJohn Layt <jlayt@kde.org>
Fri, 22 Nov 2013 14:03:14 +0000 (15:03 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 6 Dec 2013 00:36:09 +0000 (01:36 +0100)
commit689152e7c1c6b0e851937a20de96c99aa7a7ea2b
treee2071e45c294ae830eef6e1f63dbebe4161d5419
parentb9c8073230dfd90962188a24f78d4f4157f9eaad
QTimeZone: Fix isValidId()

Fix isValidId() which was failing valid IDs because it was splitting
name parts by \ instead of /.  it was also rejecting offset from UTC
formats names.  Add unit tests.

Task-number: QTBUG-35025
Change-Id: I4d23d2e54f4a9fac9afcc4eff0a02d6f4af21385
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qtimezoneprivate.cpp
tests/auto/corelib/tools/qtimezone/tst_qtimezone.cpp