Ableton / aqt-stylesheets

Apply CSS style sheets to QML applications
Other
215 stars 39 forks source link

`availableStyles` is broken when using `styleSheetSource` from version >1.1 #39

Open gck-ableton opened 8 years ago

gck-ableton commented 8 years ago

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.