diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-27 14:04:01 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-27 14:04:01 +0000 |
| commit | 8cbe19a3e1845657ccdfddbd3c4fffcaadb9ff55 (patch) | |
| tree | 72b3f2d493d1cfc76814a27c3df3d7dabdee8d29 /pokemodr/MoveUI.cpp | |
| parent | 00fecef0aebaa379dfc176ddc5d6488fae0e8272 (diff) | |
[FIX] Item widget works better
[FIX] FractionWidget value is updated at ctor
[FIX] Non-script KTextEdit is now a KLineEdit
[FIX] Rules not being set
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@179 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/MoveUI.cpp')
| -rw-r--r-- | pokemodr/MoveUI.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp index e306cfbe..652b2491 100644 --- a/pokemodr/MoveUI.cpp +++ b/pokemodr/MoveUI.cpp @@ -64,7 +64,8 @@ void MoveUI::setGui() varNumTargets->setValue(static_cast<Move*>(modified())->numTargets()); varSpecial->setChecked(static_cast<Move*>(modified())->special() ? Qt::Checked : Qt::Unchecked); varOverworld->setChecked(static_cast<Move*>(modified())->overworld() ? Qt::Checked : Qt::Unchecked); - varDescription->setPlainText(static_cast<Move*>(modified())->description()); + varDescription->setText(static_cast<Move*>(modified())->description()); + varScript->setValue(static_cast<Move*>(modified())->script()); } void MoveUI::apply() @@ -132,11 +133,9 @@ void MoveUI::on_varOverworld_toggled(const bool overworld) static_cast<Move*>(modified())->setOverworld(overworld); } -void MoveUI::on_varDescription_textChanged() +void MoveUI::on_varDescription_textChanged(const QString& description) { - QTextCursor cursor = varDescription->textCursor(); - static_cast<Move*>(modified())->setDescription(varDescription->toPlainText()); - varDescription->setTextCursor(cursor); + static_cast<Move*>(modified())->setDescription(description); } void MoveUI::on_varScript_valueChanged(const Script& script) |
