Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use QT4 layouts in echo view

  • Loading branch information...
commit 26915607534f4807d8d7170cb121a607c644e50b 1 parent 1a30125
@laudrup authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 creox/effects_gui/crecho.cpp
View
14 creox/effects_gui/crecho.cpp
@@ -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>
@@ -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);
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.