Docs: fix bad example code
ClosedPublic

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

Details

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

Diff Detail

Repository
R296 KDeclarative
Branch
fix-apidocs
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14451
Build 14469: arc lint + arc unit
adridg created this revision.Jul 26 2019, 3:15 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 26 2019, 3:15 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
adridg requested review of this revision.Jul 26 2019, 3:15 PM
davidedmundson accepted this revision.Jul 26 2019, 3:48 PM
This revision is now accepted and ready to land.Jul 26 2019, 3:48 PM
This revision was automatically updated to reflect the committed changes.