Commit 08227991 authored by Tobias Hunger's avatar Tobias Hunger

QtSupport: Code cosmetics

Avoid one needless level of nesting.

Change-Id: Ied229d59eef03493041fe9e802ec71ca6e40e0a6
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 6c646339
......@@ -171,12 +171,10 @@ bool CodeGenerator::uiData(const QString &uiXml, QString *formBaseClass, QString
if (reader.readNext() == QXmlStreamReader::StartElement) {
if (reader.name() == QLatin1String("class")) {
*uiClassName = reader.readElementText();
} else {
if (reader.name() == QLatin1String("widget")) {
const QXmlStreamAttributes attrs = reader.attributes();
*formBaseClass = attrs.value(QLatin1String("class")).toString();
return !uiClassName->isEmpty() && !formBaseClass->isEmpty();
}
} else if (reader.name() == QLatin1String("widget")) {
const QXmlStreamAttributes attrs = reader.attributes();
*formBaseClass = attrs.value(QLatin1String("class")).toString();
return !uiClassName->isEmpty() && !formBaseClass->isEmpty();
}
}
}
......
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