Mercurial > hg > easyhg
diff changesetitem.cpp @ 165:97faf861618b
* Experiment with removing revision numbers from display (hashes only)
author | Chris Cannam |
---|---|
date | Fri, 03 Dec 2010 22:42:24 +0000 |
parents | 70fe12873106 |
children | 4bad3c5c053a |
line wrap: on
line diff
--- a/changesetitem.cpp Fri Dec 03 20:37:40 2010 +0000 +++ b/changesetitem.cpp Fri Dec 03 22:42:24 2010 +0000 @@ -108,8 +108,8 @@ m_parentDiffActions.clear(); QMenu *menu = new QMenu; - QLabel *label = new QLabel(tr("<qt> <b>Revision: </b>%1</qt>") - .arg(m_changeset->id())); + QLabel *label = new QLabel(tr("<qt><b> Revision: </b>%1</qt>") + .arg(Changeset::hashOf(m_changeset->id()))); QWidgetAction *wa = new QWidgetAction(menu); wa->setDefaultWidget(label); menu->addAction(wa); @@ -124,7 +124,8 @@ foreach (QString parentId, m_changeset->parents()) { QAction *diffParent = - menu->addAction(tr("Diff to parent %1").arg(parentId)); + menu->addAction(tr("Diff to parent %1") + .arg(Changeset::hashOf(parentId))); connect(diffParent, SIGNAL(triggered()), this, SLOT(diffToParentActivated())); m_parentDiffActions[diffParent] = parentId;