diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-23 22:39:56 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-23 22:39:56 +0000 |
| commit | 0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4 (patch) | |
| tree | 61da8fe050b81a477c24fc481e5d6cb39f928e2f /pokemodr/CoinListUI.cpp | |
| parent | 793f2e539316e796968103617025320870f8c3ce (diff) | |
| download | sigen-0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4.tar.gz sigen-0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4.tar.xz sigen-0fe749eb04515ff7ee28cdc5d14c7be6f6fdeca4.zip | |
[ADD] Added UI classes for GlobalScript
[FIX] Script support is now in pokemodr
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@168 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/CoinListUI.cpp')
| -rw-r--r-- | pokemodr/CoinListUI.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pokemodr/CoinListUI.cpp b/pokemodr/CoinListUI.cpp index 7669f879..b7b4a959 100644 --- a/pokemodr/CoinListUI.cpp +++ b/pokemodr/CoinListUI.cpp @@ -36,7 +36,7 @@ CoinListUI::~CoinListUI() void CoinListUI::setGui() { varName->setText(static_cast<CoinList*>(modified())->name()); - varScript->setPlainText(static_cast<CoinList*>(modified())->script()); + varScript->setValue(static_cast<CoinList*>(modified())->script()); } void CoinListUI::apply() @@ -57,9 +57,7 @@ void CoinListUI::on_varName_textChanged(const QString& name) static_cast<CoinList*>(modified())->setName(name); } -void CoinListUI::on_varScript_textChanged() +void CoinListUI::on_varScript_valueChanged(const Script& script) { - QTextCursor cursor = varScript->textCursor(); - static_cast<CoinList*>(modified())->setScript(varScript->toPlainText()); - varScript->setTextCursor(cursor); + static_cast<CoinList*>(modified())->setScript(script); } |
