diff options
Diffstat (limited to 'sigmodr/TimeUI.cpp')
| -rw-r--r-- | sigmodr/TimeUI.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sigmodr/TimeUI.cpp b/sigmodr/TimeUI.cpp index 20eaba37..a7a4d9b7 100644 --- a/sigmodr/TimeUI.cpp +++ b/sigmodr/TimeUI.cpp @@ -18,48 +18,48 @@ // Header include #include "TimeUI.h" -// Pokemod includes -#include "../pokemod/Time.h" +// Sigmod includes +#include "../sigmod/Time.h" -Pokemodr::TimeUI::TimeUI(Pokemod::Time* time, QWidget* parent) : +Sigmodr::TimeUI::TimeUI(Sigmod::Time* time, QWidget* parent) : ObjectUI(parent) { setupUi(this); - setObjects(time, new Pokemod::Time(*time)); + setObjects(time, new Sigmod::Time(*time)); } -Pokemodr::TimeUI::~TimeUI() +Sigmodr::TimeUI::~TimeUI() { } -void Pokemodr::TimeUI::setGui() +void Sigmodr::TimeUI::setGui() { - varName->setText(qobject_cast<Pokemod::Time*>(modified())->name()); - varTime->setTime(QTime(qobject_cast<Pokemod::Time*>(modified())->hour(), qobject_cast<Pokemod::Time*>(modified())->minute())); + varName->setText(qobject_cast<Sigmod::Time*>(modified())->name()); + varTime->setTime(QTime(qobject_cast<Sigmod::Time*>(modified())->hour(), qobject_cast<Sigmod::Time*>(modified())->minute())); } -void Pokemodr::TimeUI::apply() +void Sigmodr::TimeUI::apply() { - *qobject_cast<Pokemod::Time*>(original()) = *qobject_cast<Pokemod::Time*>(modified()); + *qobject_cast<Sigmod::Time*>(original()) = *qobject_cast<Sigmod::Time*>(modified()); emit(changed(false)); } -void Pokemodr::TimeUI::discard() +void Sigmodr::TimeUI::discard() { - *qobject_cast<Pokemod::Time*>(modified()) = *qobject_cast<Pokemod::Time*>(original()); + *qobject_cast<Sigmod::Time*>(modified()) = *qobject_cast<Sigmod::Time*>(original()); setGui(); emit(changed(false)); } -void Pokemodr::TimeUI::on_varName_textChanged(const QString& name) +void Sigmodr::TimeUI::on_varName_textChanged(const QString& name) { const int cursor = varName->cursorPosition(); - qobject_cast<Pokemod::Time*>(modified())->setName(name); + qobject_cast<Sigmod::Time*>(modified())->setName(name); varName->setCursorPosition(cursor); } -void Pokemodr::TimeUI::on_varTime_timeChanged(const QTime& time) +void Sigmodr::TimeUI::on_varTime_timeChanged(const QTime& time) { - qobject_cast<Pokemod::Time*>(modified())->setHour(time.hour()); - qobject_cast<Pokemod::Time*>(modified())->setMinute(time.minute()); + qobject_cast<Sigmod::Time*>(modified())->setHour(time.hour()); + qobject_cast<Sigmod::Time*>(modified())->setMinute(time.minute()); } |
