From b32ca560259df262e4d37a26333e281f8fa68730 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 10 Jan 2009 19:00:07 -0500 Subject: Added a script variable to Time --- sigmodr/TimeUI.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sigmodr/TimeUI.cpp') 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 + * Copyright 2008-2009 Ben Boeckel * * 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(modified())->name()); varTime->setTime(QTime(qobject_cast(modified())->hour(), qobject_cast(modified())->minute())); + varScript->setValue(qobject_cast(modified())->script()); } void Sigmodr::TimeUI::apply() @@ -63,3 +64,8 @@ void Sigmodr::TimeUI::on_varTime_timeChanged(const QTime& time) qobject_cast(modified())->setHour(time.hour()); qobject_cast(modified())->setMinute(time.minute()); } + +void Sigmodr::TimeUI::on_varScript_valueChanged(const Sigcore::Script& script) +{ + qobject_cast(modified())->setScript(script); +} -- cgit