s/slots/Q_SLOTS and s/signals/Q_SIGNALS
This commit is contained in:
@@ -35,7 +35,7 @@ private:
|
|||||||
Controller *m_controller = nullptr;
|
Controller *m_controller = nullptr;
|
||||||
QVector<Connection *> m_connections;
|
QVector<Connection *> m_connections;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void controllerChanged();
|
void controllerChanged();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -113,10 +113,10 @@ private:
|
|||||||
void loadSettings();
|
void loadSettings();
|
||||||
void saveSettings() const;
|
void saveSettings() const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void invokeLogin();
|
void invokeLogin();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void busyChanged();
|
void busyChanged();
|
||||||
void errorOccured(QString error, QString detail);
|
void errorOccured(QString error, QString detail);
|
||||||
void syncDone();
|
void syncDone();
|
||||||
@@ -129,7 +129,7 @@ signals:
|
|||||||
void connectionChanged();
|
void connectionChanged();
|
||||||
void isOnlineChanged();
|
void isOnlineChanged();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void logout(Connection *conn);
|
void logout(Connection *conn);
|
||||||
void joinRoom(Connection *c, const QString &alias);
|
void joinRoom(Connection *c, const QString &alias);
|
||||||
void createRoom(Connection *c, const QString &name, const QString &topic);
|
void createRoom(Connection *c, const QString &name, const QString &topic);
|
||||||
|
|||||||
@@ -70,10 +70,10 @@ public:
|
|||||||
Q_INVOKABLE QVariantList history();
|
Q_INVOKABLE QVariantList history();
|
||||||
Q_INVOKABLE QVariantList filterModel(const QString &filter);
|
Q_INVOKABLE QVariantList filterModel(const QString &filter);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void historyChanged();
|
void historyChanged();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void emojiUsed(QVariant modelData);
|
void emojiUsed(QVariant modelData);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
QClipboard *m_clipboard;
|
QClipboard *m_clipboard;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void imageChanged();
|
void imageChanged();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public:
|
|||||||
ThumbnailResponse(Quotient::Connection *c, QString mediaId, const QSize &requestedSize);
|
ThumbnailResponse(Quotient::Connection *c, QString mediaId, const QSize &requestedSize);
|
||||||
~ThumbnailResponse() override = default;
|
~ThumbnailResponse() override = default;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void startRequest();
|
void startRequest();
|
||||||
void prepareResult();
|
void prepareResult();
|
||||||
void doCancel();
|
void doCancel();
|
||||||
@@ -68,7 +68,7 @@ public:
|
|||||||
Q_EMIT connectionChanged();
|
Q_EMIT connectionChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void connectionChanged();
|
void connectionChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public:
|
|||||||
|
|
||||||
Q_INVOKABLE int eventIDToIndex(const QString &eventID) const;
|
Q_INVOKABLE int eventIDToIndex(const QString &eventID) const;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
int refreshEvent(const QString &eventId);
|
int refreshEvent(const QString &eventId);
|
||||||
void refreshRow(int row);
|
void refreshRow(int row);
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ private:
|
|||||||
void refreshEventRoles(int row, const QVector<int> &roles = {});
|
void refreshEventRoles(int row, const QVector<int> &roles = {});
|
||||||
int refreshEventRoles(const QString &eventId, const QVector<int> &roles = {});
|
int refreshEventRoles(const QString &eventId, const QVector<int> &roles = {});
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void roomChanged();
|
void roomChanged();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ private:
|
|||||||
|
|
||||||
QueryPublicRoomsJob *job = nullptr;
|
QueryPublicRoomsJob *job = nullptr;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void connectionChanged();
|
void connectionChanged();
|
||||||
void serverChanged();
|
void serverChanged();
|
||||||
void keywordChanged();
|
void keywordChanged();
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public:
|
|||||||
return m_notificationCount;
|
return m_notificationCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void doAddRoom(Room *room);
|
void doAddRoom(Room *room);
|
||||||
void updateRoom(Room *room, Room *prev);
|
void updateRoom(Room *room, Room *prev);
|
||||||
void deleteRoom(Room *room);
|
void deleteRoom(Room *room);
|
||||||
@@ -84,7 +84,7 @@ private:
|
|||||||
|
|
||||||
void connectRoomSignals(SpectralRoom *room);
|
void connectRoomSignals(SpectralRoom *room);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void connectionChanged();
|
void connectionChanged();
|
||||||
void notificationCountChanged();
|
void notificationCountChanged();
|
||||||
|
|
||||||
|
|||||||
@@ -95,17 +95,17 @@ private:
|
|||||||
|
|
||||||
static QString markdownToHTML(const QString &plaintext);
|
static QString markdownToHTML(const QString &plaintext);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void countChanged();
|
void countChanged();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void cachedInputChanged();
|
void cachedInputChanged();
|
||||||
void busyChanged();
|
void busyChanged();
|
||||||
void hasFileUploadingChanged();
|
void hasFileUploadingChanged();
|
||||||
void fileUploadingProgressChanged();
|
void fileUploadingProgressChanged();
|
||||||
void backgroundChanged();
|
void backgroundChanged();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void uploadFile(const QUrl &url, const QString &body = "");
|
void uploadFile(const QUrl &url, const QString &body = "");
|
||||||
void acceptInvitation();
|
void acceptInvitation();
|
||||||
void forget();
|
void forget();
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public:
|
|||||||
}
|
}
|
||||||
void setIsOnline(bool online);
|
void setIsOnline(bool online);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void notificationCountChanged();
|
void notificationCountChanged();
|
||||||
void iconSourceChanged();
|
void iconSourceChanged();
|
||||||
void isOnlineChanged();
|
void isOnlineChanged();
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ private:
|
|||||||
|
|
||||||
SearchUserDirectoryJob *job = nullptr;
|
SearchUserDirectoryJob *job = nullptr;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void connectionChanged();
|
void connectionChanged();
|
||||||
void keywordChanged();
|
void keywordChanged();
|
||||||
void limitedChanged();
|
void limitedChanged();
|
||||||
|
|||||||
@@ -55,10 +55,10 @@ public:
|
|||||||
|
|
||||||
QHash<int, QByteArray> roleNames() const override;
|
QHash<int, QByteArray> roleNames() const override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void roomChanged();
|
void roomChanged();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void userAdded(Quotient::User *user);
|
void userAdded(Quotient::User *user);
|
||||||
void userRemoved(Quotient::User *user);
|
void userRemoved(Quotient::User *user);
|
||||||
void refresh(Quotient::User *user, QVector<int> roles = {});
|
void refresh(Quotient::User *user, QVector<int> roles = {});
|
||||||
|
|||||||
Reference in New Issue
Block a user