Docs: fix bad example code

Authored by adridg on Jul 26 2019, 3:13 PM.

Description

Docs: fix bad example code

Summary:

  • setupBindings() doesn't take an engine parameter
  • setupBindings() is deprecated and suggests to call setupContext() instead, although you need to setup the engine as well and tell KDeclarative to use that engine.

Test Plan: - the previous example code wouldn't compile

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D22765

Details

Committed
adridgJul 26 2019, 8:18 PM
Reviewer
davidedmundson
Differential Revision
D22765: Docs: fix bad example code
Parents
R296:52b1133c3dcd: KRun QML proxy: fix path/URL confusion
Branches
Unknown
Tags
Unknown