]> ruin.nu Git - hbs.git/blobdiff - bs/ui/roidseditview.ui.h
much better indenting.. (thnx vim ;)
[hbs.git] / bs / ui / roidseditview.ui.h
index 55d22b556e3f2c604efcb96f8ba07922ff00a217..075520571d5afac5a7d01f495bab71760bda2f93 100644 (file)
@@ -1,10 +1,10 @@
 /****************************************************************************
-** ui.h extension file, included from the uic-generated form implementation.
-**
-** If you wish to add, delete or rename slots use Qt Designer which will
-** update this file, preserving your code. Create an init() slot in place of
-** a constructor, and a destroy() slot in place of a destructor.
-*****************************************************************************/
+ ** ui.h extension file, included from the uic-generated form implementation.
+ **
+ ** If you wish to add, delete or rename slots use Qt Designer which will
+ ** update this file, preserving your code. Create an init() slot in place of
+ ** a constructor, and a destroy() slot in place of a destructor.
+ *****************************************************************************/
 
 void RoidsEditView::init()
 {
@@ -13,25 +13,25 @@ void RoidsEditView::init()
 
 void RoidsEditView::setValue( const QString & type, unsigned value )
 {
-    if (type == tr("metal"))
-       MetalEdit->setText(QString("%1").arg(value));
-    else if (type == tr("crystal"))
-       CrystalEdit->setText(QString("%1").arg(value));
-    else if (type == tr("eonium"))
-       EoniumEdit->setText(QString("%1").arg(value));
-    else if (type == tr("uninit"))
-       UninitEdit->setText(QString("%1").arg(value));
-    else if (type == tr("score"))
-       ScoreEdit->setText(QString("%1").arg(value));
-     
-    
+       if (type == tr("metal"))
+               MetalEdit->setText(QString("%1").arg(value));
+       else if (type == tr("crystal"))
+               CrystalEdit->setText(QString("%1").arg(value));
+       else if (type == tr("eonium"))
+               EoniumEdit->setText(QString("%1").arg(value));
+       else if (type == tr("uninit"))
+               UninitEdit->setText(QString("%1").arg(value));
+       else if (type == tr("score"))
+               ScoreEdit->setText(QString("%1").arg(value));
+
+
 
 }
 
 void RoidsEditView::slotValueChanged()
 {
        QString type = sender()->name();
-       
+
        if (type == "MetalEdit")
                type = tr("metal");
        else if (type == "CrystalEdit")
@@ -45,22 +45,22 @@ void RoidsEditView::slotValueChanged()
        test = type;
        const QLineEdit *le = dynamic_cast<const QLineEdit*>(sender());
        if (le)
-           emit changed(type, le->text().toInt());
+               emit changed(type, le->text().toInt());
 }
 
 
 void RoidsEditView::slotSetLost( QString type, float 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("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
+       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("scorelost"))
+               ScoreLostEdit->setText(QString("%1").arg(i));
+       else if (type == tr("capping"))
+               CappingEdit->setText(QString("%1\%").arg(i*100));
+}