Unusual C++/Qt syntax

https://github.com/ricochet-im/ricochet/blob/master/src/core/ContactUser.h#L110-L137
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
public slots:
    void setNickname(const QString &nickname);
    void setHostname(const QString &hostname);

    void updateStatus();

    void incomingProtocolSocket(QTcpSocket *socket);

signals:
    void statusChanged();
    void connected();
    void disconnected();

    void nicknameChanged();
    void contactDeleted(ContactUser *user);

    /* Hack to allow creating models/windows/etc to handle other signals before they're
     * emitted; primarily, to allow UI to create models to handle incomingChatMessage */
    void prepareInteractiveHandler();
    void incomingChatMessage(const ChatMessageData &message);

private slots:
    void onConnected();
    void onDisconnected();
    void requestRemoved();
    void onSettingsModified(const QString &key, const QJsonValue &value);

private:
What's with the text before the colons?
Last edited on
Last edited on
That's pretty crazy, I've used the identifier slots before in my code. Having to dodge that compiler error doesn't sound fun.
Last edited on
Topic archived. No new replies allowed.