[SailfishDevel] Silica ScollDecorator: flickable / flickableItem property

Thomas Perl th.perl at gmail.com
Fri Mar 1 09:23:02 UTC 2013


Hi again,

When porting from Harmattan Qt Components to Sailfish Silica, the API
for ScrollDecorator has changed a bit:

http://harmattan-dev.nokia.com/docs/library/html/qt-components/qt-components-meego-scrolldecorator.html
https://sailfishos.org//sailfish-silica/qml-sailfishsilica-scrolldecorator.html

In Harmattan, the property is called: flickableItem
In Silica, the property is called: flickable

I personally like the Silica naming better, and think it's cleaner,
but to ease porting from Harmattan to Silica, a simple (undocumented,
so as to not confuse new developers and introduce ambiguity) property
alias in Silica's ScrollDecorator would help:

    property alias flickableItem: flickable

I will probably opt for locally (in my application's QML source)
subclassing the ScrollDecorator and adding the alias myself, but it
might be beneficial to have that in the components by default,
especially for developers aiming to support both Harmattan Qt
Components and Silica or to ease porting from Harmattan to Silica.

Thanks,
Thomas


More information about the Devel mailing list