From c4a979a99f06835f8e6c9ac115bf1e2795f8e5bf Mon Sep 17 00:00:00 2001 From: Christian Kamm <christian.d.kamm@nokia.com> Date: Mon, 28 Jun 2010 09:41:04 +0200 Subject: [PATCH] QmlJS: Fix completion for slots. When reading the xml file describing the Qml types, we incorrectly classified all functions as methods. They should be slots, since otherwise qmldump couldn't have dumped them in the first place. Task-number: QTCREATORBUG-1755 Reviewed-by: Erik Verbruggen --- src/libs/qmljs/qmljsinterpreter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index 7214a188bb8..eb69715ff0e 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -694,6 +694,7 @@ private: } FakeMetaMethod method(name, type); + method.setMethodType(FakeMetaMethod::Slot); while (_xml.readNextStartElement()) { if (_xml.name() == QLatin1String("param")) { -- GitLab