Commit 47772960 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile on freebsd

parent efe57643
Pipeline #100382 passed with stage
in 6 minutes and 32 seconds
......@@ -203,7 +203,7 @@ QPainterPath MonthGraphicsItem::widgetPath(bool border) const
QRectF MonthGraphicsItem::boundingRect() const
{
// width - 2 because of the cell-dividing line with width == 1 at beginning and end
return {0, 0, (daySpan() + 1) * mMonthItem->monthScene()->columnWidth() - 2, mMonthItem->monthScene()->itemHeight()};
return QRectF(0, 0, (daySpan() + 1) * mMonthItem->monthScene()->columnWidth() - 2, mMonthItem->monthScene()->itemHeight());
}
void MonthGraphicsItem::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
......
......@@ -75,7 +75,7 @@ public:
KGantt::Span rowGeometry(const QModelIndex &idx) const override
{
return {idx.row() * mRowHeight, mRowHeight};
return KGantt::Span(idx.row() * mRowHeight, mRowHeight);
}
int maximumItemHeight() const override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment