diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index 85981e3..69c13d7 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -263,7 +263,7 @@ void CDockWidget::setWidget(QWidget* widget, eInsertMode InsertMode) takeWidget(); } - QScrollArea* ScrollAreaWidget = qobject_cast(widget); + auto ScrollAreaWidget = qobject_cast(widget); if (ScrollAreaWidget || ForceNoScrollArea == InsertMode) { d->Layout->addWidget(widget);