Mercurial > hg > easyhg
diff incomingdialog.cpp @ 298:fd9dc5a457d8
* Make "More Details" button non-auto-default in more-info dialog
* Make Incoming dialog show same message as in Pull dialog when no changes are pending
* Try to make the confirm-push/pull dialogs look more in-keeping on OS/X... but mostly we end up making their text too small. Hmm.
author | Chris Cannam |
---|---|
date | Tue, 22 Feb 2011 15:12:56 +0000 |
parents | 8fd71f570884 |
children | 5e4a10af7945 |
line wrap: on
line diff
--- a/incomingdialog.cpp Mon Feb 21 19:22:29 2011 +0000 +++ b/incomingdialog.cpp Tue Feb 22 15:12:56 2011 +0000 @@ -40,7 +40,9 @@ body = QString("<p>%1</p><code>%2</code>") .arg(tr("The command output was:")) .arg(xmlEncode(text).replace("\n", "<br>")); - } + } else { + body = tr("<qt>Your local repository already contains all changes found in the remote repository.</qt>"); + } scroll = false; } else { head = tr("There are %n change(s) ready to pull", "", csets.size()); @@ -59,12 +61,13 @@ int iconSize = style->pixelMetric(QStyle::PM_MessageBoxIconSize, 0, this); info->setPixmap(style->standardIcon(QStyle::SP_MessageBoxInformation, 0, this) .pixmap(iconSize, iconSize)); - layout->addWidget(info, 0, 0); + layout->addWidget(info, 0, 0, 2, 1); QLabel *headLabel = new QLabel(QString("<qt><h3>%1</h3></qt>").arg(head)); layout->addWidget(headLabel, 0, 1); QLabel *textLabel = new QLabel(body); + if (csets.empty()) textLabel->setWordWrap(true); if (scroll) { QScrollArea *sa = new QScrollArea;