hiro/qt: QLayout::setMargin -> QLayout::setContentsMargins

setMargin has been obsolete since Qt 4.3!
This commit is contained in:
John Chadwick
2025-09-01 03:34:09 -04:00
committed by Screwtapello
parent fb09f52093
commit a6db3d6013
2 changed files with 2 additions and 2 deletions

2
hiro/qt/widget/hex-edit.cpp Executable file → Normal file
View File

@@ -11,7 +11,7 @@ auto pHexEdit::construct() -> void {
qtLayout = new QHBoxLayout;
qtLayout->setAlignment(Qt::AlignRight);
qtLayout->setMargin(0);
qtLayout->setContentsMargins(0, 0, 0, 0);
qtLayout->setSpacing(0);
qtHexEdit->setLayout(qtLayout);

2
hiro/qt/window.cpp Executable file → Normal file
View File

@@ -18,7 +18,7 @@ auto pWindow::construct() -> void {
}
qtLayout = new QVBoxLayout(qtWindow);
qtLayout->setMargin(0);
qtLayout->setContentsMargins(0, 0, 0, 0);
qtLayout->setSpacing(0);
qtWindow->setLayout(qtLayout);