Comment 6 for bug 1341671

Revision history for this message
Tim Peeters (tpeeters) wrote :

This is bugging us in the SDK team when we try to add/remove functionality from UITK in newer versions.

For example, right now I want to clean up MainView to remove toolbar support (and have better code) in MainView 1.2, but if I create MainView12.qml then the autopilot tests that select the MainView by component type will break.

We had a workaround for this where we instead would create a directory for a new version and add a file 12/MainView.qml but that is obviously a workaround, and it does not work for all cases (including the cases I am dealing with now). It requires in 12/MainView.qml to use an import of Ubuntu.Componets in order to be able to use other components of UITK inside MainView. However this needs to be a named import due to https://bugreports.qt-project.org/browse/QTBUG-27645 and a named import cannot be used to define a property Toolkit.Toolbar toolbar for example, so this approach doesn't work.