summaryrefslogtreecommitdiff
path: root/dgedit/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-26 14:43:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-26 14:43:04 +0200
commitabe157edbae109b9436e388fbdb0a1d2e65ebb3c (patch)
treed1ca6e84c39c76cdd0759dc6ce26bb8cc0bee663 /dgedit/mainwindow.cc
parentdda686a04556a4cbbed0d8acf68c7d017b613024 (diff)
Move setValue to past connect in order to make initial value propagate to the engine.
Diffstat (limited to 'dgedit/mainwindow.cc')
-rw-r--r--dgedit/mainwindow.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/dgedit/mainwindow.cc b/dgedit/mainwindow.cc
index ada7f95..7d060cb 100644
--- a/dgedit/mainwindow.cc
+++ b/dgedit/mainwindow.cc
@@ -152,32 +152,32 @@ MainWindow::MainWindow()
configs->addWidget(new QLabel("Attack length:"));
QSlider *slider = new QSlider(Qt::Horizontal);
slider->setRange(10, 1000);
- slider->setValue(666);
connect(slider, SIGNAL(sliderMoved(int)), sorter, SLOT(setAttackLength(int)));
+ slider->setValue(666);
configs->addWidget(slider);
configs->addWidget(new QLabel("Falloff:"));
QSlider *slider2 = new QSlider(Qt::Horizontal);
slider2->setRange(1, 10000);
- slider2->setValue(666);
connect(slider2, SIGNAL(sliderMoved(int)),
selections, SLOT(noiseFloorChanged(int)));
+ slider2->setValue(666);
configs->addWidget(slider2);
configs->addWidget(new QLabel("Fadelength:"));
QSlider *slider3 = new QSlider(Qt::Horizontal);
slider3->setRange(1, 2000);
- slider3->setValue(666);
connect(slider3, SIGNAL(sliderMoved(int)),
selections, SLOT(fadeoutChanged(int)));
+ slider3->setValue(666);
configs->addWidget(slider3);
configs->addWidget(new QLabel("Player volume:"));
QSlider *slider4 = new QSlider(Qt::Horizontal);
slider4->setRange(0, 1000000);
- slider4->setValue(100000);
connect(slider4, SIGNAL(sliderMoved(int)),
listen, SLOT(setVolume(int)));
+ slider4->setValue(100000);
configs->addWidget(slider4);
configs->addWidget(new QLabel("Prefix:"));