summaryrefslogtreecommitdiff
path: root/muse2/synti
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-11-14 19:18:55 +0000
committerTim E. Real <termtech@rogers.com>2010-11-14 19:18:55 +0000
commit64c818b2c3b92c16049c5705b1c808b237697e02 (patch)
treeae6542581162660d28f1530137af21c9348287a0 /muse2/synti
parent2a079213ac507ab4866d9e27c5cf86ddcb7a3c6d (diff)
Applied patch by Orcan converting populateAddSynth().
Changed all obsoleted setMargin() calls to setContentsMargins().
Diffstat (limited to 'muse2/synti')
-rw-r--r--muse2/synti/simpledrums2/ssplugingui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/muse2/synti/simpledrums2/ssplugingui.cpp b/muse2/synti/simpledrums2/ssplugingui.cpp
index 0428988b..da74bd56 100644
--- a/muse2/synti/simpledrums2/ssplugingui.cpp
+++ b/muse2/synti/simpledrums2/ssplugingui.cpp
@@ -140,7 +140,7 @@ SS_PluginFront::SS_PluginFront(QWidget* parent, int in_fxid)
setMaximumSize(SS_PLUGINGUI_MAX_WIDTH, SS_PLUGINFRONT_MINHEIGHT);
QVBoxLayout* bigLayout = new QVBoxLayout(this);
- bigLayout->setMargin(SS_PLUGINFRONT_MARGIN);
+ bigLayout->setContentsMargins(SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN);
bigLayout->setAlignment(Qt::AlignTop);
//TODO bigLayout->setResizeMode(QLayout::SetNoConstraint);
@@ -152,7 +152,7 @@ SS_PluginFront::SS_PluginFront(QWidget* parent, int in_fxid)
QVBoxLayout* onOffLayout = new QVBoxLayout;
layout->addLayout(onOffLayout);
- onOffLayout->setMargin(SS_PLUGINFRONT_MARGIN);
+ onOffLayout->setContentsMargins(SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN);
onOff = new QCheckBox(this);
onOffLayout->addWidget(new QLabel("On/Off", this));
onOffLayout->addWidget(onOff);
@@ -196,7 +196,7 @@ SS_PluginFront::SS_PluginFront(QWidget* parent, int in_fxid)
QVBoxLayout* gainSliderLayout = new QVBoxLayout;
layout->addLayout(gainSliderLayout);
gainSliderLayout->addWidget(new QLabel("Return level", this));
- gainSliderLayout->setMargin(SS_PLUGINFRONT_MARGIN);
+ gainSliderLayout->setContentsMargins(SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN);
outGainSlider = new QSlider(Qt::Horizontal, this);
outGainSlider->setMinimumSize(100, pluginName->geometry().height());
outGainSlider->setMaximumSize(500, pluginName->geometry().height());
@@ -419,7 +419,7 @@ void SS_PluginFront::createPluginParameters()
QVBoxLayout* expGroupLayout = new QVBoxLayout(expGroup); // , 1);
expGroupLayout->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
//TD expGroupLayout->setResizeMode(QLayout::FreeResize);
- expGroupLayout->setMargin(SS_PLUGINFRONT_MARGIN);
+ expGroupLayout->setContentsMargins(SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN, SS_PLUGINFRONT_MARGIN);
for (int i=0; i < plugin->parameter(); i++) {
QHBoxLayout* paramStrip = new QHBoxLayout; // (expGroupLayout, 3);