From daf7218cfd3481c5a72abe7f4d0825a982b067a5 Mon Sep 17 00:00:00 2001 From: Alexander Voronov Date: Fri, 24 Mar 2023 22:52:21 +0300 Subject: [PATCH] LibreVNA-GUI: Remove obsolete 'setMargin' calls --- Software/PC_Application/LibreVNA-GUI/Traces/Marker/marker.cpp | 1 - Software/PC_Application/LibreVNA-GUI/modewindow.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/Software/PC_Application/LibreVNA-GUI/Traces/Marker/marker.cpp b/Software/PC_Application/LibreVNA-GUI/Traces/Marker/marker.cpp index cfe4b9f..eb5b63c 100644 --- a/Software/PC_Application/LibreVNA-GUI/Traces/Marker/marker.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Traces/Marker/marker.cpp @@ -1473,7 +1473,6 @@ QWidget *Marker::getTypeEditor(QAbstractItemDelegate *delegate) layout->addWidget(c); c->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); layout->setContentsMargins(0,0,0,0); - layout->setMargin(0); layout->setSpacing(0); layout->addWidget(new QLabel("to")); auto deltaChooser = new QComboBox; diff --git a/Software/PC_Application/LibreVNA-GUI/modewindow.cpp b/Software/PC_Application/LibreVNA-GUI/modewindow.cpp index 12bf87a..70be6f1 100644 --- a/Software/PC_Application/LibreVNA-GUI/modewindow.cpp +++ b/Software/PC_Application/LibreVNA-GUI/modewindow.cpp @@ -38,7 +38,6 @@ void ModeWindow::SetupUi() auto cornerWidget = new QWidget(); cornerWidget->setLayout(new QHBoxLayout); cornerWidget->layout()->setSpacing(0); - cornerWidget->layout()->setMargin(0); cornerWidget->layout()->setContentsMargins(0,0,0,0); cornerWidget->setMaximumHeight(aw->menuBar()->height());