]> ruin.nu Git - hbs.git/blobdiff - bs/ui/roidseditview.ui.h
A few more bugs killed.. still a few left before 0.1 release..
[hbs.git] / bs / ui / roidseditview.ui.h
index 225af827f0d4c8def97187889fb77c6b49f160f1..22a8230ee24d3c7a401603ea661f9fa1f5cf0f0e 100644 (file)
@@ -30,7 +30,7 @@ void RoidsEditView::setValue( const QString & type, unsigned value )
 void RoidsEditView::slotValueChanged( const QString & s )
 {
        QString type = sender()->name();
-    
+       
        if (type == "MetalEdit")
                type = tr("metal");
        else if (type == "CrystalEdit")
@@ -39,8 +39,24 @@ void RoidsEditView::slotValueChanged( const QString & s )
                type = tr("eonium");
        else if (type == "UninitEdit")
                type = tr("uninit");
-  else if (type == "ScoreEdit")
+       else if (type == "ScoreEdit")
                type = tr("score");
-    
+       test = type;
     emit changed(type, s.toInt());
+}
+
+
+void RoidsEditView::slotSetLost( QString type, int i )
+{ 
+    if (type == tr("metal"))
+       MetalLostEdit->setText(QString("%1").arg(i));
+    else if (type == tr("crystal"))
+       CrystalLostEdit->setText(QString("%1").arg(i));
+    else if (type == tr("eonium"))
+       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));
+    */
 }
\ No newline at end of file