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/ScriptWidget.cpp | |
| parent | 00fecef0aebaa379dfc176ddc5d6488fae0e8272 (diff) | |
| download | sigen-8cbe19a3e1845657ccdfddbd3c4fffcaadb9ff55.tar.gz sigen-8cbe19a3e1845657ccdfddbd3c4fffcaadb9ff55.tar.xz sigen-8cbe19a3e1845657ccdfddbd3c4fffcaadb9ff55.zip | |
[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/ScriptWidget.cpp')
| -rw-r--r-- | pokemodr/ScriptWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemodr/ScriptWidget.cpp b/pokemodr/ScriptWidget.cpp index addb14ba..cdde5c83 100644 --- a/pokemodr/ScriptWidget.cpp +++ b/pokemodr/ScriptWidget.cpp @@ -39,7 +39,9 @@ void ScriptWidget::setValue(const Script& value) return; m_value = value; varInterpreter->setEditText(m_value.interpreter()); + QTextCursor cursor = varScript->textCursor(); varScript->setPlainText(m_value.script()); + varScript->setTextCursor(cursor); emit(valueChanged(m_value)); } @@ -51,8 +53,6 @@ void ScriptWidget::on_varInterpreter_activated(const QString& interpreter) void ScriptWidget::on_varScript_textChanged() { - QTextCursor cursor = varScript->textCursor(); m_value.setScript(varScript->toPlainText()); - varScript->setTextCursor(cursor); emit(valueChanged(m_value)); } |
