aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-11-11 19:38:30 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-11-11 19:39:19 +0800
commitfa3ad51059df0999e0c828d8f458277ad064f265 (patch)
treea4f09cb03d639323fbc873d7937c905b45ffd80f
parentdfc11c56f096b93ec70d0263f134918a5c9323ba (diff)
downloadQMidiPlayer-fa3ad51059df0999e0c828d8f458277ad064f265.tar.xz
setMargin() disappeared?
-rw-r--r--qmidiplayer-desktop/qmpsettingswindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.cpp b/qmidiplayer-desktop/qmpsettingswindow.cpp
index 03e4cd1..d0998f2 100644
--- a/qmidiplayer-desktop/qmpsettingswindow.cpp
+++ b/qmidiplayer-desktop/qmpsettingswindow.cpp
@@ -134,7 +134,7 @@ void qmpSettingsWindow::registerSoundFontOption()
{
QWidget *sfpanel = new QWidget();
sfpanel->setLayout(new QVBoxLayout);
- sfpanel->layout()->setMargin(0);
+ sfpanel->layout()->setContentsMargins(0, 0, 0, 0);
QTableWidget *twsf = new QTableWidget();
twsf->setColumnCount(2);
twsf->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeMode::ResizeToContents);
@@ -146,7 +146,7 @@ void qmpSettingsWindow::registerSoundFontOption()
sfpanel->layout()->addWidget(twsf);
QWidget *controls = new QWidget();
controls->setLayout(new QHBoxLayout);
- controls->layout()->setMargin(0);
+ controls->layout()->setContentsMargins(0, 0, 0, 0);
QPushButton *pbsfadd = new QPushButton(style()->standardIcon(QStyle::StandardPixmap::SP_DialogOpenButton), QString());
QPushButton *pbsfrem = new QPushButton(style()->standardIcon(QStyle::StandardPixmap::SP_DialogDiscardButton), QString());
QPushButton *pbsfmup = new QPushButton(style()->standardIcon(QStyle::StandardPixmap::SP_ArrowUp), QString());
@@ -580,7 +580,7 @@ QGridLayout *qmpSettingsWindow::pageForTab(std::string tab)
QFileEdit::QFileEdit(QWidget *par): QWidget(par)
{
QHBoxLayout *layout = new QHBoxLayout(this);
- layout->setMargin(0);
+ layout->setContentsMargins(0, 0, 0, 0);
le = new QLineEdit(this);
layout->addWidget(le);
tb = new QToolButton(this);