Skip to content

Commit

Permalink
Use QT4 layouts in echo view
Browse files Browse the repository at this point in the history
  • Loading branch information
laudrup committed Jun 30, 2011
1 parent 1a30125 commit 2691560
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions creox/effects_gui/crecho.cpp
Expand Up @@ -27,8 +27,8 @@
#include <QStringList>
#include <q3listbox.h>
//Added by qt3to4:
#include <Q3HBoxLayout>
#include <Q3VBoxLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <kglobal.h>
#include <kconfig.h>
#include <klocale.h>
Expand Down Expand Up @@ -56,21 +56,21 @@ CrEcho::CrEcho(QWidget *parent, const char *name )
m_voicesStringList << i18n("Voice %1").arg(count);
}

Q3VBoxLayout* mainLayout = new Q3VBoxLayout(this, CR_FRAME_WIDTH);
QVBoxLayout* mainLayout = new QVBoxLayout(this, CR_FRAME_WIDTH);
//mix
Q3HBoxLayout* topLayout = new Q3HBoxLayout(CR_CELL_SPACING);
QHBoxLayout* topLayout = new QHBoxLayout(CR_CELL_SPACING);
Q3VGroupBox* mixBox = new Q3VGroupBox(i18n("Mix"), this);
m_mixArray = new CrSliderArray(3, 5, m_echo, mixBox);
(void)m_mixArray->addSlider(i18n("Input Gain"), i18n("dB"), inputGainValid, &m_epar->inputGain);
(void)m_mixArray->addSlider(i18n("Dry Mix"), "%", mixValid, &m_epar->dryMix);
(void)m_mixArray->addSlider(i18n("Wet Mix"), "%", mixValid, &m_epar->wetMix);

Q3VBoxLayout* finalLayout = new Q3VBoxLayout;
QVBoxLayout* finalLayout = new QVBoxLayout;
finalLayout->setMargin(mixBox->frameWidth());
m_finalEchoArray = new CrSliderArray(2, 6, m_echo, this);
(void)m_finalEchoArray->addSlider(i18n("Final Delay"), i18n("ms"), delayValid, &m_epar->finalDelay, true, true);
(void)m_finalEchoArray->addSlider(i18n("Final Feedback"), "%", mixValid, &m_epar->finalFeedback, true, true);
Q3HBoxLayout* voiceNumLayout = new Q3HBoxLayout(CR_CELL_SPACING);
QHBoxLayout* voiceNumLayout = new QHBoxLayout(CR_CELL_SPACING);
QLabel* voiceNumLabel = new QLabel(i18n("Number of Voices"), this);
m_voiceNumSpinBox = new QSpinBox(0, 10, 1, this);
m_voiceNumSpinBox->setValue(m_epar->parallelEchoCount);
Expand All @@ -90,7 +90,7 @@ CrEcho::CrEcho(QWidget *parent, const char *name )
m_echoTapsView = new CrEchoTapsView(m_epar, m_visibleVoice, this);

//voices list box
Q3HBoxLayout* middleLayout = new Q3HBoxLayout(CR_CELL_SPACING);
QHBoxLayout* middleLayout = new QHBoxLayout(CR_CELL_SPACING);
m_voicesListBox = new Q3ListBox(this);
//voice box
assert(m_visibleVoice <= m_epar->parallelEchoCount);
Expand Down

0 comments on commit 2691560

Please sign in to comment.