From abe157edbae109b9436e388fbdb0a1d2e65ebb3c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 26 Apr 2013 14:43:04 +0200 Subject: Move setValue to past connect in order to make initial value propagate to the engine. --- dgedit/mainwindow.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dgedit') 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:")); -- cgit v1.2.3