summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-bartender/bac.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-bartender/bac.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-bartender/bac.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/opie-bartender/bac.cpp b/noncore/apps/opie-bartender/bac.cpp
index 2e74029..8dc7e88 100644
--- a/noncore/apps/opie-bartender/bac.cpp
+++ b/noncore/apps/opie-bartender/bac.cpp
@@ -125,25 +125,24 @@ BacDialog::BacDialog( QWidget* parent, const char* name, bool modal, WFlags fl
125 125
126 Layout7->addWidget( LCDNumber1 ); 126 Layout7->addWidget( LCDNumber1 );
127 NumberSpinBox->setFocus(); 127 NumberSpinBox->setFocus();
128} 128}
129 129
130BacDialog::~BacDialog() 130BacDialog::~BacDialog()
131{} 131{}
132 132
133void BacDialog::calculate() 133void BacDialog::calculate()
134{ 134{
135 135
136 float weight,genderDiff, bac, typeDrink=0, drinkOz=0, bodyWater, milliliters, oz, gram, gramsMil, alc, metab, bac1; 136 float weight,genderDiff, bac, typeDrink=0, drinkOz=0, bodyWater, milliliters, oz, gram, gramsMil, alc, metab, bac1;
137 float weightunitDifference, massunitdiff;
138 QString estBac; 137 QString estBac;
139 138
140 if( GenderComboBox->currentItem()==0) 139 if( GenderComboBox->currentItem()==0)
141 genderDiff = .58; 140 genderDiff = .58;
142 else 141 else
143 genderDiff = .49; 142 genderDiff = .49;
144 143
145 switch(TypeDrinkComboBox->currentItem()) { 144 switch(TypeDrinkComboBox->currentItem()) {
146 case 0: { //beer 145 case 0: { //beer
147 typeDrink = .045; 146 typeDrink = .045;
148 drinkOz = 12; 147 drinkOz = 12;
149 } 148 }