Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qml support #35

Open
demiantres opened this issue Sep 17, 2019 · 3 comments
Open

Add qml support #35

demiantres opened this issue Sep 17, 2019 · 3 comments

Comments

@demiantres
Copy link

Add support for using the library from Qml, for instance (Font Awesome 5 branch):

`{
Q_OBJECT
Q_ENUMS(FontStyle)

public:
enum FontStyle {
/// solid icons
Stfas = style::stfas,
/// regular icons
Stfar = style::stfar,
#ifdef FONT_AWESOME_PRO
/// light icons
Stfal = style::stfal,
/// duotone icons
Stfad = style::stfad,
#endif
/// brands icons
Stfab = style::stfab
};

Q_INVOKABLE QString getFontName(FontStyle fontStyle = Stfas) const;
Q_INVOKABLE QString getIcon(const QString &iconName, FontStyle fontStyle = Stfas) const;`
@nuttyartist
Copy link

👍

@gamecreature
Copy link
Owner

@gamecreature
Copy link
Owner

In don't use QML myself.
If somebody can build in support for it and write a QML sample app, I can try to integrate it into the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants