diff options
Diffstat (limited to 'pokemodr/CoinListObjectUI.cpp')
| -rw-r--r-- | pokemodr/CoinListObjectUI.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pokemodr/CoinListObjectUI.cpp b/pokemodr/CoinListObjectUI.cpp index 77bd8744..2e672415 100644 --- a/pokemodr/CoinListObjectUI.cpp +++ b/pokemodr/CoinListObjectUI.cpp @@ -32,7 +32,6 @@ CoinListObjectUI::CoinListObjectUI(CoinListObject* object, QWidget* parent) : setupUi(this); QMetaObject::connectSlotsByName(this); setObjects(object, new CoinListObject(*object)); - connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); connect(modified(), SIGNAL(error(const QString&)), this, SLOT(setGui())); connect(modified(), SIGNAL(error(const QString&)), this, SLOT(errorMessage(const QString&))); connect(modified(), SIGNAL(warning(const QString&)), this, SLOT(warningMessage(const QString&))); @@ -82,13 +81,13 @@ void CoinListObjectUI::setGui() varCost->setValue(static_cast<CoinListObject*>(modified())->cost()); } -void CoinListObjectUI::on_buttonApply_clicked() +void CoinListObjectUI::apply() { *static_cast<CoinListObject*>(original()) = *static_cast<CoinListObject*>(modified()); emit(changed(false)); } -void CoinListObjectUI::on_buttonDiscard_clicked() +void CoinListObjectUI::discard() { *static_cast<CoinListObject*>(modified()) = *static_cast<CoinListObject*>(original()); setGui(); |
