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

Nicer command creation in QML #43

Open
jpnurmi opened this issue Jun 14, 2015 · 0 comments
Open

Nicer command creation in QML #43

jpnurmi opened this issue Jun 14, 2015 · 0 comments

Comments

@jpnurmi
Copy link
Member

jpnurmi commented Jun 14, 2015

The static IrcCommand::createXxx() convenience API might work fine in C++, but it's clumsy in QML given that one has to create a command instance to be able to call the methods. Perhaps a QML singleton (has to be a different name than IrcCommand to avoid clashes) or extend the Irc API in QML?

var cmd = IrcCommand.part(channel, reason) // clashes with the IrcCommand QML type name
var cmd = Irc.partCommand(channel, reason)

The latter kinda matches with the Qt QML "namespace" but then needs a QML specific documentation...

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

1 participant