diff options
Diffstat (limited to 'sigmodr/TimeUI.cpp')
| -rw-r--r-- | sigmodr/TimeUI.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sigmodr/TimeUI.cpp b/sigmodr/TimeUI.cpp index a7a4d9b7..8af23087 100644 --- a/sigmodr/TimeUI.cpp +++ b/sigmodr/TimeUI.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,6 +36,7 @@ void Sigmodr::TimeUI::setGui() { varName->setText(qobject_cast<Sigmod::Time*>(modified())->name()); varTime->setTime(QTime(qobject_cast<Sigmod::Time*>(modified())->hour(), qobject_cast<Sigmod::Time*>(modified())->minute())); + varScript->setValue(qobject_cast<Sigmod::Time*>(modified())->script()); } void Sigmodr::TimeUI::apply() @@ -63,3 +64,8 @@ void Sigmodr::TimeUI::on_varTime_timeChanged(const QTime& time) qobject_cast<Sigmod::Time*>(modified())->setHour(time.hour()); qobject_cast<Sigmod::Time*>(modified())->setMinute(time.minute()); } + +void Sigmodr::TimeUI::on_varScript_valueChanged(const Sigcore::Script& script) +{ + qobject_cast<Sigmod::Time*>(modified())->setScript(script); +} |
