forked from qt-creator/qt-creator
QueryRunner: Connect to done() signal
Instead of connecting to errorOccurred() and finished() signals. Change-Id: I57adabc52b38be6b22a4d7380e6fbaaae3192201 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -62,24 +62,14 @@ class QueryRunner : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
QueryRunner(const Query &query, const Utils::Id &id, QObject *parent = nullptr);
|
||||
~QueryRunner();
|
||||
|
||||
void start();
|
||||
void terminate();
|
||||
|
||||
signals:
|
||||
void finished();
|
||||
void resultRetrieved(const QByteArray &json);
|
||||
|
||||
private:
|
||||
void errorTermination(const QString &msg);
|
||||
void processError(QProcess::ProcessError error);
|
||||
void processFinished();
|
||||
|
||||
Utils::QtcProcess m_process;
|
||||
Utils::Id m_serverId;
|
||||
bool m_running = false;
|
||||
bool m_paginated = false;
|
||||
};
|
||||
|
||||
} // namespace GitLab
|
||||
|
||||
Reference in New Issue
Block a user