diff options
Diffstat (limited to 'src/ladspaview.cpp')
-rw-r--r-- | src/ladspaview.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/ladspaview.cpp b/src/ladspaview.cpp index f0ae47c366..6fb7acd40c 100644 --- a/src/ladspaview.cpp +++ b/src/ladspaview.cpp @@ -7,9 +7,6 @@ * * ***************************************************************************/ -#include <QtCore> -#include <QtGui> - #include "ladspaview.h" #include "ladspa/ladspapresetmanager.h" #include "ladspa/ladspapresetinstance.h" @@ -48,7 +45,7 @@ LADSPAView::LADSPAView(QWidget * parent) : QWidget(parent) //bg->lower(); //this->setFixedSize(background->width(), background->height()); //parent->setMinimumSize(background->width(), background->height()); - + QDomElement bgColorNode = docElement.firstChildElement("BgColor"); QDomElement fgColorNode = docElement.firstChildElement("FgColor"); @@ -97,13 +94,13 @@ LADSPAView::LADSPAView(QWidget * parent) : QWidget(parent) if (height <= 0) { height = this->height() + height; - } - + } + //m_pPresetList->resize(width, height); m_pPresetList->setMinimumSize(65, 200); m_pPresetList->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::MinimumExpanding); - - + + m_pPresetManager = new LADSPAPresetManager(); for (unsigned int i = 0; i < m_pPresetManager->getPresetCount(); i++) @@ -112,13 +109,13 @@ LADSPAView::LADSPAView(QWidget * parent) : QWidget(parent) if (preset->isValid()) m_pPresetList->addItem(preset->getName()); else - m_pPresetList->addItem("-" + preset->getName()); + m_pPresetList->addItem("-" + preset->getName()); } m_pSlotTable = new QWidget(this); - + QDomElement slotTableElement = docElement.firstChildElement("SlotTable"); - + posElement = slotTableElement.firstChildElement("Pos"); pos = posElement.text(); x = pos.left(pos.indexOf(",")).toInt(); @@ -144,7 +141,7 @@ LADSPAView::LADSPAView(QWidget * parent) : QWidget(parent) if (height <= 0) { height = this->height() + height; - } + } //m_pSlotTable->resize(width, height); m_pSlotTable->setMinimumSize(400, 200); m_pSlotTable->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |