diff options
author | Robert Jonsson <spamatica@gmail.com> | 2013-01-03 21:41:24 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2013-01-03 21:41:24 +0000 |
commit | a32a5f600bbfb5ad0de098cf6d1e8dfe806d616f (patch) | |
tree | beb49096c88a59b5e26cf0eaba249434e6ecf3a1 /muse2/synti/simpledrums2/simpledrumsgui.cpp | |
parent | 61ecb53059fe12c5890938341b0a62a7b89371bb (diff) |
fixed simpledrums gui
Diffstat (limited to 'muse2/synti/simpledrums2/simpledrumsgui.cpp')
-rw-r--r-- | muse2/synti/simpledrums2/simpledrumsgui.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/muse2/synti/simpledrums2/simpledrumsgui.cpp b/muse2/synti/simpledrums2/simpledrumsgui.cpp index 640ea3b6..c426d547 100644 --- a/muse2/synti/simpledrums2/simpledrumsgui.cpp +++ b/muse2/synti/simpledrums2/simpledrumsgui.cpp @@ -122,6 +122,7 @@ QChannelSlider::QChannelSlider(Qt::Orientation orientation, int ch, QWidget* par : QSlider(orientation, parent) { channel = ch; + setMinimumHeight(50); } void QChannelSlider::sliderChange(SliderChange change) @@ -287,9 +288,16 @@ SimpleSynthGui::SimpleSynthGui() pluginGui->hide(); QVBoxLayout* mainLayout = new QVBoxLayout(this); //, 3); + +// mainLayout->setSpacing(0); +// mainLayout->setMargin(0); QHBoxLayout* channelLayout = new QHBoxLayout; + channelLayout->setSpacing(1); + channelLayout->setMargin(0); mainLayout->addLayout(channelLayout); + + //this->setFixedWidth(SS_GUI_WINDOW_WIDTH); //this->setFixedHeight(SS_GUI_WINDOW_HEIGHT); for (int i=0; i<SS_NR_OF_CHANNELS; i++) { @@ -304,6 +312,9 @@ SimpleSynthGui::SimpleSynthGui() QVBoxLayout* inchnlLayout = new QVBoxLayout(channelButtonGroups[i]); //, 2, 0, "channelinternallayout"); inchnlLayout->setAlignment(Qt::AlignHCenter); + inchnlLayout->setSpacing(1); + inchnlLayout->setMargin(0); + onOff[i] = new QChannelCheckbox(channelButtonGroups[i], i); // onOff[i]->setMinimumSize(SS_ONOFF_WIDTH, SS_ONOFF_HEIGHT); @@ -390,6 +401,9 @@ SimpleSynthGui::SimpleSynthGui() channelLayout->addWidget(masterButtonGroup); QVBoxLayout* mbgLayout = new QVBoxLayout(masterButtonGroup); mbgLayout->setAlignment(Qt::AlignCenter); + mbgLayout->setSpacing(1); + mbgLayout->setMargin(0); + // masterButtonGroup->setMinimumSize(SS_BTNGRP_WIDTH, SS_BTNGRP_HEIGHT); ///masterSlider = new QInvertedSlider(Qt::Vertical, masterButtonGroup); @@ -413,6 +427,8 @@ SimpleSynthGui::SimpleSynthGui() mainLayout->addWidget(mainGroupBox); QGridLayout* mgbLayout = new QGridLayout(mainGroupBox); // , 8, 3, 1); + mgbLayout->setSpacing(1); + mgbLayout->setMargin(0); int i=0; @@ -454,6 +470,8 @@ SimpleSynthGui::SimpleSynthGui() openPluginsButton->setToolTip("Configure LADSPA send effects"); connect(openPluginsButton, SIGNAL(clicked()), SLOT(openPluginButtonClicked())); rbLayout->addWidget(openPluginsButton, 2, 1, Qt::AlignCenter | Qt::AlignVCenter); + rbLayout->setSpacing(0); + rbLayout->setMargin(0); aboutButton = new QPushButton("About SimpleDrums"); connect(aboutButton, SIGNAL(clicked()), SLOT(aboutButtonClicked())); //TD rbLayout->addRowSpacing(3, 20); |