diff options
Diffstat (limited to 'sigmodr/widgets/WeatherUI.cpp')
| -rw-r--r-- | sigmodr/widgets/WeatherUI.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sigmodr/widgets/WeatherUI.cpp b/sigmodr/widgets/WeatherUI.cpp index 294f88d6..1b03281f 100644 --- a/sigmodr/widgets/WeatherUI.cpp +++ b/sigmodr/widgets/WeatherUI.cpp @@ -21,44 +21,44 @@ // Sigmod includes #include <sigmod/Weather.h> -Sigmodr::WeatherUI::WeatherUI(Sigmod::Weather* weather, QWidget* parent) : +Sigmodr::Widgets::WeatherUI::WeatherUI(Sigmod::Weather* weather, QWidget* parent) : ObjectUI(parent) { setupUi(this); setObjects(weather, new Sigmod::Weather(*weather)); } -Sigmodr::WeatherUI::~WeatherUI() +Sigmodr::Widgets::WeatherUI::~WeatherUI() { } -void Sigmodr::WeatherUI::setGui() +void Sigmodr::Widgets::WeatherUI::setGui() { varName->setText(qobject_cast<Sigmod::Weather*>(modified())->name()); varScript->setValue(qobject_cast<Sigmod::Weather*>(modified())->script()); } -void Sigmodr::WeatherUI::apply() +void Sigmodr::Widgets::WeatherUI::apply() { *qobject_cast<Sigmod::Weather*>(original()) = *qobject_cast<Sigmod::Weather*>(modified()); emit(changed(false)); } -void Sigmodr::WeatherUI::discard() +void Sigmodr::Widgets::WeatherUI::discard() { *qobject_cast<Sigmod::Weather*>(modified()) = *qobject_cast<Sigmod::Weather*>(original()); setGui(); emit(changed(false)); } -void Sigmodr::WeatherUI::on_varName_textChanged(const QString& name) +void Sigmodr::Widgets::WeatherUI::on_varName_textChanged(const QString& name) { const int cursor = varName->cursorPosition(); qobject_cast<Sigmod::Weather*>(modified())->setName(name); varName->setCursorPosition(cursor); } -void Sigmodr::WeatherUI::on_varScript_valueChanged(const Sigcore::Script& script) +void Sigmodr::Widgets::WeatherUI::on_varScript_valueChanged(const Sigcore::Script& script) { qobject_cast<Sigmod::Weather*>(modified())->setScript(script); } |
