From: Michael Andreen Date: Sat, 6 Apr 2002 21:34:35 +0000 (+0000) Subject: finially got it to save I think.. X-Git-Tag: HBS_0_1_0~25 X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=commitdiff_plain;h=4cf2f4e52869627146dfc5a0c0d4fe0942777a09 finially got it to save I think.. --- diff --git a/bs/ui/roidseditview.ui.h b/bs/ui/roidseditview.ui.h index 6f98119..d5d8b3b 100644 --- a/bs/ui/roidseditview.ui.h +++ b/bs/ui/roidseditview.ui.h @@ -5,4 +5,42 @@ ** update this file, preserving your code. Create an init() slot in place of ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ -//test \ No newline at end of file + +void RoidsEditView::init() +{ + +} + +void RoidsEditView::setValue( const QString & s, unsigned value ) +{ + if (type == tr("metal")) + MetalEdit->setText("%1").arg(value); + else if (type == tr("crystall")) + CrystalEdit->setText("%1").arg(value); + else if (type == tr("eoniuml")) + EoniumEdit->setText("%1").arg(value); + else if (type == tr("uninit")) + UninitEdit->setText("%1").arg(value); + else if (type == tr("score")) + ScoreEdit->setText("%1").arg(value); + + +} + +void RoidsEditView::slotValueChanged( const QString & s ) +{ + QString type = send()->name(); + + if (type == "MetalEdit") + type = tr("metal"); + else if (type == "CrystalEdit") + type = tr("crystal"); + else if (type == "EoniumEdit") + type = tr("eonium"); + else if (type == "UninitEdit") + type = tr("uninit"); + else if (type == "ScoreEdit") + type = tr("score"); + + emit changed(type, s.toInt()); +} \ No newline at end of file