-
- setFixedHeight(layout()->sizeHint().height());
- // Update the dock widget too, else it won't resize in all styles... FIXME try to sanitize this
- qobject_cast<QWidget *>(parent())->setMinimumHeight(height() + 2*qApp->style()->pixelMetric(QStyle::PM_DockWidgetTitleBarButtonMargin));
- qobject_cast<QWidget *>(parent())->adjustSize();