Added DockWidgetBase::setMDISize()

Only for dock widgets in MDI layout, where they are freely resizable
This commit is contained in:
Sergio Martins
2021-03-02 10:21:29 +00:00
parent 93c011c69d
commit cf0665c9b6
6 changed files with 26 additions and 0 deletions

View File

@@ -92,6 +92,13 @@ void QWidgetAdapter::setFlag(Qt::WindowType f, bool on)
QWidget::setWindowFlag(f, on);
}
void QWidgetAdapter::setSize(QSize size)
{
QRect geo = geometry();
geo.setSize(size);
setGeometry(geo);
}
bool QWidgetAdapter::onResize(QSize) { return false; }
void QWidgetAdapter::onLayoutRequest() {}