[Qt-qml] env variable expansion in import, useful for styles?

2010-04-26 Thread Matthias Ettrich
Hi, attached is a small patch which adds environment variable expansion to the import statement. Rationale: this might be useful to implement different (native) component styles. You could make a module: com.mycompany.qml-ui-components which contains a C++ plugin and a bunch of files, e.g.

Re: [Qt-qml] env variable expansion in import, useful for styles?

2010-04-26 Thread warwick.allison
---Button.qml--- import $STYLE Button{} Environment variables are notoriously cumbersome to set - especially hard if you want to set it for already-running processes! Note that you can achieve styling in multiple ways already, without this,