Commit 7b67ac62 authored by Arno Rehn's avatar Arno Rehn
Browse files

QFlags references are valid unless they are return types of field

accessors.

Fixes compilation of smokekde.

CCMAIL: kde-bindings@kde.org
parent a90687a6
......@@ -609,7 +609,7 @@ void Util::addAccessorMethods(const Field& field, QSet<Type*> *usedTypes)
{
Class* klass = field.getClass();
Type* type = field.type();
if (type->getClass() && type->pointerDepth() == 0) {
if (type->getClass() && type->pointerDepth() == 0 && !(ParserOptions::qtMode && type->getClass()->name() == "QFlags")) {
Type newType = *type;
newType.setIsRef(true);
type = Type::registerType(newType);
......
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