Commit fe13d339 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Tobias Nätterlund
Browse files

QNX: Fix compilation with Qt 4.

Introduced by b254313c


Change-Id: Ib1b41da58eef97f5fe961ca12bcfcabeae4fd523
Reviewed-by: default avatarFriedemann Kleint <>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 783d6ebb
......@@ -620,9 +620,8 @@ int BarDescriptorDocument::tagForElement(const QDomElement &element)
QMetaEnum tags = metaObject()->enumerator(metaObject()->enumeratorOffset());
QDomElement el = element;
while (!el.isNull()) {
bool ok;
int n = tags.keyToValue(el.tagName().toLatin1().constData(), &ok);
if (ok)
const int n = tags.keyToValue(el.tagName().toLatin1().constData());
if (n > -1)
return n;
el = el.parentNode().toElement();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment