From 651fefdeb00194e9df7b03b9adffad140f35c89a Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Wed, 9 Apr 2014 08:12:21 +0200 Subject: Added initial values to lineedit showing values of sliders. --- dgedit/mainwindow.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dgedit/mainwindow.cc b/dgedit/mainwindow.cc index cb01059..79af877 100644 --- a/dgedit/mainwindow.cc +++ b/dgedit/mainwindow.cc @@ -224,6 +224,7 @@ MainWindow::MainWindow() connect(slider4, SIGNAL(sliderMoved(int)), listen, SLOT(setVolume(int))); slider4->setValue(100000); + lineed_slider4->setText("100000"); attribs_layout->addWidget(slider4, 8, 2); configs->addLayout(attribs_layout); @@ -419,8 +420,11 @@ void MainWindow::setPreset(int index) QVariant v = presets->itemData(index); Preset p = v.value(); slider_attacklength->setValue(p.attacklength); + lineed_attacklength->setText(QString::number(p.attacklength)); slider_falloff->setValue(p.falloff); + lineed_falloff->setText(QString::number(p.falloff)); slider_fadelength->setValue(p.fadelength); + lineed_fadelength->setText(QString::number(p.fadelength)); prefix->setText(p.prefix); } -- cgit v1.2.3