From: gregor herrmann Date: Wed, 11 Jan 2017 20:48:53 +0000 (+0100) Subject: eventdialog: only convertFromPlainText description and abstract if they are not richtext. X-Git-Tag: 0.6.2~28 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/8cb2bc78a377391b959fcb20e71eea2661f9d20e eventdialog: only convertFromPlainText description and abstract if they are not richtext. --- diff --git a/src/gui/eventdialog.cpp b/src/gui/eventdialog.cpp index d9da630..67f01d5 100644 --- a/src/gui/eventdialog.cpp +++ b/src/gui/eventdialog.cpp @@ -48,11 +48,19 @@ EventDialog::EventDialog(int conferenceId, int eventId, QWidget *parent): QDialo // abstract info += QString("

%1

\n").arg(tr("Abstract")); - info += Qt::convertFromPlainText(event.abstract(), Qt::WhiteSpaceNormal); + if (Qt::mightBeRichText(event.abstract())) { + info += event.abstract(); + } else { + info += Qt::convertFromPlainText(event.abstract(), Qt::WhiteSpaceNormal); + } // description info += QString("

%1

\n").arg(tr("Description")); - info += Qt::convertFromPlainText(event.description(), Qt::WhiteSpaceNormal); + if (Qt::mightBeRichText(event.description())) { + info += event.description(); + } else { + info += Qt::convertFromPlainText(event.description(), Qt::WhiteSpaceNormal); + } // links info += QString("

%1

\n