Commit ee4a9573 authored by David Nolden's avatar David Nolden
Browse files

Adapt to changes in kdevplatform

parent 880cf773
......@@ -188,7 +188,7 @@ QWidget* KDevQmlJsPlugin::specialLanguageObjectNavigationWidget(const QUrl& url,
// if the property key is listed in the supported properties.
QPair<KTextEditor::Range, KTextEditor::Range> property = parseProperty(doc->textDocument()->line(position.line()), position);
if ( property.first.isValid() && property.second.isValid() ) {
Declaration* decl = DUChainUtils::itemUnderCursor(url, property.first.start());
Declaration* decl = DUChainUtils::itemUnderCursor(url, property.first.start()).declaration;
return PropertyPreviewWidget::constructIfPossible(
doc->textDocument(),
......
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