diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp
index 9cbce73e0064b09a9bd5d2bd55e632c49f855861..f6d2066b6958f4e04fc810d112dae0b06f2defa9 100644
--- a/src/libs/qmljs/qmljsinterpreter.cpp
+++ b/src/libs/qmljs/qmljsinterpreter.cpp
@@ -743,7 +743,7 @@ const Value *Context::lookup(const QString &name)
     return _engine->undefinedValue();
 }
 
-const ObjectValue *Context::lookupType(AST::UiQualifiedId *qmlTypeName)
+const ObjectValue *Context::lookupType(UiQualifiedId *qmlTypeName)
 {
     const ObjectValue *objectValue = _typeEnvironment;
 
@@ -1992,7 +1992,7 @@ bool ASTFunctionValue::isVariadic() const
     return true;
 }
 
-QmlPrototypeReference::QmlPrototypeReference(AST::UiQualifiedId *qmlTypeName, Engine *engine)
+QmlPrototypeReference::QmlPrototypeReference(UiQualifiedId *qmlTypeName, Engine *engine)
     : Reference(engine),
       _qmlTypeName(qmlTypeName)
 {