UninitEdit->setText(QString("%1").arg(value));
else if (type == tr("score"))
ScoreEdit->setText(QString("%1").arg(value));
+
}
-void RoidsEditView::slotValueChanged( const QString & s )
+void RoidsEditView::slotValueChanged()
{
QString type = sender()->name();
else if (type == "ScoreEdit")
type = tr("score");
test = type;
- emit changed(type, s.toInt());
+ const QLineEdit *le = dynamic_cast<const QLineEdit*>(sender());
+ if (le)
+ emit changed(type, le->text().toInt());
}
-void RoidsEditView::slotSetLost( QString type, int i )
+void RoidsEditView::slotSetLost( QString type, float i )
{
if (type == tr("metal"))
MetalLostEdit->setText(QString("%1").arg(i));
EoniumLostEdit->setText(QString("%1").arg(i));
else if (type == tr("uninit"))
UninitLostEdit->setText(QString("%1").arg(i));
- /*else if (type == tr("score"))
- ScoreEdit->setText(QString("%1").arg(i));
- */
+ else if (type == tr("scorelost"))
+ ScoreLostEdit->setText(QString("%1").arg(i));
+ else if (type == tr("capping"))
+ CappingEdit->setText(QString("%1\%").arg(i*100));
}
\ No newline at end of file