On 01/11/2013 01:55 PM, Tim Peeters wrote:
> // class name may have_QMLTYPE_XX or _QML_XX suffixes
> className = className.left(className.indexOf("_qml"));
> styleData.className = className;
> styleData.styleClass = className;
>
> Is this correct? It sets the classname to _qml. Shouldn't you use className.right?
What do you mean it sets classname to _qml? Cuts off everything
starting from index of "_QML", so if a classname is
"ScrollBar_QMLTYPE_72" then the classname will be "scrollbar".
On 01/11/2013 01:55 PM, Tim Peeters wrote: left(className. indexOf( "_qml") ); styleClass = className; QMLTYPE_ 72" then the classname will be "scrollbar".
> // class name may have_QMLTYPE_XX or _QML_XX suffixes
> className = className.
> styleData.className = className;
> styleData.
>
> Is this correct? It sets the classname to _qml. Shouldn't you use className.right?
What do you mean it sets classname to _qml? Cuts off everything
starting from index of "_QML", so if a classname is
"ScrollBar_