GUI: Show also summary in the details pane.

Show both short summary and verbose message in lower details panel
in the GUI: Add titles for short summary and message. Hopefully this
makes it easier to read the messages and copy/paste them too.
This commit is contained in:
Kimmo Varis 2010-11-30 23:37:25 +02:00
parent 2b8f6b9b56
commit 57a61a4a83
1 changed files with 6 additions and 2 deletions

View File

@ -282,6 +282,10 @@ void ResultsView::UpdateDetails(const QModelIndex &index)
item = item->parent()->child(item->row(), 0);
QVariantMap data = item->data().toMap();
QString message = data["message"].toString();
mUI.mDetails->setText(message);
const QString summary = data["summary"].toString();
const QString message = data["message"].toString();
const QString formattedMsg = QString("%1: %2\n%3: %4")
.arg(tr("Summary")).arg(summary)
.arg(tr("Message")).arg(message);
mUI.mDetails->setText(formattedMsg);
}