forked from qt-creator/qt-creator
Gerrit: Read out dependency information.
Pass on the command line argument --dependencies to the client, read out dependent/needed by changes and display them in the detailed text view. Move the toHtml() method from GerritChange to GerritModel to be able to display titles of dependent changes. Change-Id: I1d0b67a995d45a9fe5b7bdb3ff51cc905d58478f Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3f25ed3bbf
commit
ded93b43d2
@@ -73,13 +73,14 @@ public:
|
||||
GerritChange() : number(0) {}
|
||||
|
||||
bool isValid() const { return number && !url.isEmpty() && !project.isEmpty(); }
|
||||
QString toHtml() const;
|
||||
QString filterString() const;
|
||||
QStringList gitFetchArguments(const QSharedPointer<GerritParameters> &p) const;
|
||||
|
||||
QString url;
|
||||
int number;
|
||||
QString id;
|
||||
QString dependsOnId;
|
||||
QString neededById;
|
||||
QString title;
|
||||
QString owner;
|
||||
QString email;
|
||||
@@ -115,8 +116,9 @@ public:
|
||||
~GerritModel();
|
||||
|
||||
GerritChangePtr change(int row) const;
|
||||
QString toHtml(int row) const;
|
||||
|
||||
int indexOf(int gerritNumber) const;
|
||||
QStandardItem *itemForId(const QString &id) const;
|
||||
|
||||
public slots:
|
||||
void refresh(const QString &query);
|
||||
@@ -132,6 +134,8 @@ private slots:
|
||||
|
||||
private:
|
||||
inline bool evaluateQuery(QString *errorMessage);
|
||||
QString dependencyHtml(const QString &header, const QString &changeId,
|
||||
const QString &serverPrefix) const;
|
||||
|
||||
const QSharedPointer<GerritParameters> m_parameters;
|
||||
QueryContext *m_query;
|
||||
|
||||
Reference in New Issue
Block a user