Skip to content

Nicer command creation in QML #43

@jpnurmi

Description

@jpnurmi

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions