Qt6: deal with changes to window and layout geometry APIs

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-02-09 17:00:48 -08:00
parent e29ecf2c9a
commit e61509b032
3 changed files with 15 additions and 1 deletions

View file

@ -81,7 +81,9 @@ ProfileWidget::ProfileWidget()
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setSpacing(0);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
layout->setMargin(0);
#endif
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(toolBar);
layout->addWidget(stack);