The StyleEngine has some legacy code for supporting the old version 1.0 stylePath and styleName properties. When using the styleSheetSource property as a replacement, the availableStyles property is not working anymore.
Looking into the code this is obvious. mStylesDir is only set in setStylePath, but should of course be set from setStyleSheetSource, too. And btw, for the same reason stylePath seems to be equally "broken". styleName() is actually re-implemented in terms of mStyleSheetSourceUrl, but not stylePath.
Whatever. I think it's not worth trying to fix this. We should really drop 1.0-1.2 support soon.
The StyleEngine has some legacy code for supporting the old version 1.0
stylePath
andstyleName
properties. When using thestyleSheetSource
property as a replacement, theavailableStyles
property is not working anymore.Looking into the code this is obvious.
mStylesDir
is only set insetStylePath
, but should of course be set fromsetStyleSheetSource
, too. And btw, for the same reasonstylePath
seems to be equally "broken".styleName()
is actually re-implemented in terms ofmStyleSheetSourceUrl
, but notstylePath
.Whatever. I think it's not worth trying to fix this. We should really drop 1.0-1.2 support soon.