forked from qt-creator/qt-creator
Gerrit: Make column headers and tooltip consistent.
Use terms from the Gerrit web interface (except '#'). Change-Id: I1a8af47122e17f9e3daf2a19967ee1dc165e0ea5 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -189,6 +189,7 @@ int GerritPatchSet::approvalLevel() const
|
|||||||
|
|
||||||
QString GerritChange::toHtml() const
|
QString GerritChange::toHtml() const
|
||||||
{
|
{
|
||||||
|
// Keep in sync with list model headers.
|
||||||
static const QString format = GerritModel::tr(
|
static const QString format = GerritModel::tr(
|
||||||
"<html><head/><body><table>"
|
"<html><head/><body><table>"
|
||||||
"<tr><td>Subject</td><td>%1</td></tr>"
|
"<tr><td>Subject</td><td>%1</td></tr>"
|
||||||
@@ -381,9 +382,9 @@ GerritModel::GerritModel(const QSharedPointer<GerritParameters> &p, QObject *par
|
|||||||
, m_parameters(p)
|
, m_parameters(p)
|
||||||
, m_query(0)
|
, m_query(0)
|
||||||
{
|
{
|
||||||
QStringList headers;
|
QStringList headers; // Keep in sync with GerritChange::toHtml()
|
||||||
headers << QLatin1String("#") << tr("Title") << tr("Owner")
|
headers << QLatin1String("#") << tr("Subject") << tr("Owner")
|
||||||
<< tr("Date") << tr("Project")
|
<< tr("Updated") << tr("Project")
|
||||||
<< tr("Approvals") << tr("Status");
|
<< tr("Approvals") << tr("Status");
|
||||||
setHorizontalHeaderLabels(headers);
|
setHorizontalHeaderLabels(headers);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user