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:
Friedemann Kleint
2012-07-30 16:16:50 +02:00
parent f03a76e1ca
commit 236980eaa1

View File

@@ -189,6 +189,7 @@ int GerritPatchSet::approvalLevel() const
QString GerritChange::toHtml() const
{
// Keep in sync with list model headers.
static const QString format = GerritModel::tr(
"<html><head/><body><table>"
"<tr><td>Subject</td><td>%1</td></tr>"
@@ -381,9 +382,9 @@ GerritModel::GerritModel(const QSharedPointer<GerritParameters> &p, QObject *par
, m_parameters(p)
, m_query(0)
{
QStringList headers;
headers << QLatin1String("#") << tr("Title") << tr("Owner")
<< tr("Date") << tr("Project")
QStringList headers; // Keep in sync with GerritChange::toHtml()
headers << QLatin1String("#") << tr("Subject") << tr("Owner")
<< tr("Updated") << tr("Project")
<< tr("Approvals") << tr("Status");
setHorizontalHeaderLabels(headers);
}