diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-04-09 08:12:21 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-04-09 08:12:21 +0200 |
commit | 651fefdeb00194e9df7b03b9adffad140f35c89a (patch) | |
tree | 75f73794aec0a66f1c98dc3bea16ee6be28760ca /dgedit/mainwindow.cc | |
parent | ee49d30300f7cd3c6f5a992e48540950bf72c04b (diff) |
Added initial values to lineedit showing values of sliders.
Diffstat (limited to 'dgedit/mainwindow.cc')
-rw-r--r-- | dgedit/mainwindow.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<Preset>(); 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); } |