Skip to content

Commit ec54b1e

Browse files
heireckamilianw
authored andcommitted
Fix build with Qt 6.9
That version added some overloads to setBrush [1], making the {} ambiguous: "hotspot/src/models/timelinedelegate.cpp:197:26: error: call of overloaded 'setBrush(<brace-enclosed initializer list>)' is ambiguous" [1] qtbase commit: 2ad79c626d7a94e545886152ce5ac3feabf619a2
1 parent 1e2ae7b commit ec54b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/timelinedelegate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void TimeLineDelegate::paint(QPainter* painter, const QStyleOptionViewItem& opti
194194
painter->drawRect(threadTimeRect.adjusted(-1, -1, 0, 0));
195195

196196
// visualize all events
197-
painter->setBrush({});
197+
painter->setBrush(QBrush());
198198

199199
if (offCpuCostId != -1) {
200200
const auto offCpuColor = scheme.background(KColorScheme::NegativeBackground).color();

0 commit comments

Comments
 (0)