diff --git a/widgets/separator.cpp b/widgets/separator.cpp index 4114fdf09..a3d40d072 100644 --- a/widgets/separator.cpp +++ b/widgets/separator.cpp @@ -78,7 +78,7 @@ void Separator::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, } } -QSizeF Frame::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const +QSizeF Separator::sizeHint(Qt::SizeHint which, const QSizeF & constraint) const { QSizeF hint = QGraphicsWidget::sizeHint(which, constraint);