From 8acf9866494639e47d6d60e56b78659d5c8ecff7 Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Mon, 3 Mar 2014 12:31:33 +0100 Subject: [PATCH] TaskDelegate: Use additional formats in text layout for sizeHints Task-number: QTCREATORBUG-11621 Change-Id: I2be90e1814afcaab8c3c9a84e2682e5192dfe472 Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/taskwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/taskwindow.cpp b/src/plugins/projectexplorer/taskwindow.cpp index 8dc060e1489..cca6ebf256e 100644 --- a/src/plugins/projectexplorer/taskwindow.cpp +++ b/src/plugins/projectexplorer/taskwindow.cpp @@ -730,6 +730,7 @@ QSize TaskDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelInd int height = 0; description.replace(QLatin1Char('\n'), QChar::LineSeparator); QTextLayout tl(description); + tl.setAdditionalFormats(index.data(TaskModel::Task_t).value().formats); tl.beginLayout(); while (true) { QTextLine line = tl.createLine();