From fbfdebc7644698ae6e9fe0ed114fdfb6a84e43b3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 18 Apr 2014 18:02:26 +0200 Subject: Make initial slider positions reflected in the preview. --- dgedit/mainwindow.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dgedit/mainwindow.cc b/dgedit/mainwindow.cc index 9f877bf..702a99e 100644 --- a/dgedit/mainwindow.cc +++ b/dgedit/mainwindow.cc @@ -309,11 +309,11 @@ QWidget *MainWindow::createGenerateTab() attribs_layout->addWidget(lineed_attacklength, 2, 1); slider_attacklength = new QSlider(Qt::Horizontal); slider_attacklength->setRange(10, 1000); - connect(slider_attacklength, SIGNAL(sliderMoved(int)), + connect(slider_attacklength, SIGNAL(valueChanged(int)), this, SLOT(setAttackLengthLineEd(int))); - connect(slider_attacklength, SIGNAL(sliderMoved(int)), + connect(slider_attacklength, SIGNAL(valueChanged(int)), sorter, SLOT(setAttackLength(int))); - connect(slider_attacklength, SIGNAL(sliderMoved(int)), + connect(slider_attacklength, SIGNAL(valueChanged(int)), tool_selections, SLOT(autoCreateSelectionsPreview())); slider_attacklength->setValue(666); @@ -326,11 +326,11 @@ QWidget *MainWindow::createGenerateTab() attribs_layout->addWidget(lineed_falloff, 4, 1); slider_falloff = new QSlider(Qt::Horizontal); slider_falloff->setRange(1, 1000); - connect(slider_falloff, SIGNAL(sliderMoved(int)), + connect(slider_falloff, SIGNAL(valueChanged(int)), this, SLOT(setFalloffLineEd(int))); - connect(slider_falloff, SIGNAL(sliderMoved(int)), + connect(slider_falloff, SIGNAL(valueChanged(int)), tool_selections, SLOT(noiseFloorChanged(int))); - connect(slider_falloff, SIGNAL(sliderMoved(int)), + connect(slider_falloff, SIGNAL(valueChanged(int)), tool_selections, SLOT(autoCreateSelectionsPreview())); slider_falloff->setValue(666); @@ -344,11 +344,11 @@ QWidget *MainWindow::createGenerateTab() attribs_layout->addWidget(lineed_fadelength, 6, 1); slider_fadelength = new QSlider(Qt::Horizontal); slider_fadelength->setRange(1, 2000); - connect(slider_fadelength, SIGNAL(sliderMoved(int)), + connect(slider_fadelength, SIGNAL(valueChanged(int)), this, SLOT(setFadeLengthLineEd(int))); - connect(slider_fadelength, SIGNAL(sliderMoved(int)), + connect(slider_fadelength, SIGNAL(valueChanged(int)), tool_selections, SLOT(fadeoutChanged(int))); - connect(slider_fadelength, SIGNAL(sliderMoved(int)), + connect(slider_fadelength, SIGNAL(valueChanged(int)), tool_selections, SLOT(autoCreateSelectionsPreview())); slider_fadelength->setValue(666); -- cgit v1.2.3