← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1543998] [NEW] We must clean singleton and context property handling so they are always tight to a given QML Engine instance.

 

Public bug reported:

Currently every singleton component exported as context property
declares a static instance which we use across the toolkit as well as in
the test cases, which do require an engine to be running. However the
instance() functions return the instance created by the first engine,
which will cause problems in case an application will use two separate
Quick windows, and will try to share a code that has access to both view
contents.

We must get rid of the instance() functionality and do a proper
implementation for each singleton.

Affected components:
* Units
* i18n
* FontUtils
* QuickUtils
* UbuntuApplication
* StateSaver(!!!!!)
* Haptics

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: High
     Assignee: Zsombor Egri (zsombi)
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1543998

Title:
  We must clean singleton and context property handling so they are
  always tight to a given QML Engine instance.

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  Currently every singleton component exported as context property
  declares a static instance which we use across the toolkit as well as
  in the test cases, which do require an engine to be running. However
  the instance() functions return the instance created by the first
  engine, which will cause problems in case an application will use two
  separate Quick windows, and will try to share a code that has access
  to both view contents.

  We must get rid of the instance() functionality and do a proper
  implementation for each singleton.

  Affected components:
  * Units
  * i18n
  * FontUtils
  * QuickUtils
  * UbuntuApplication
  * StateSaver(!!!!!)
  * Haptics

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1543998/+subscriptions