From 57a61a4a83c53021dfa4460b3338303b5157960a Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Tue, 30 Nov 2010 23:37:25 +0200 Subject: [PATCH] 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. --- gui/resultsview.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index dfba1b5b6..b89be07b3 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -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); }