Brewtarget / brewtarget

Main brewtarget source code repository.
GNU General Public License v3.0
315 stars 135 forks source link

Tidy up of ABV tool, plus move remaining model class files into subdirectory #583

Closed matty0ung closed 3 years ago

matty0ung commented 3 years ago

This is a follow-on to https://github.com/Brewtarget/brewtarget/pull/367

Although a lot of files are touched, mostly this is just to move the other Ingredient/NamedEntity object files into the model subdirectory and make their naming consistent with other classes (Hop.h rather than hop.h etc). The main files to look at are AlcoholTool. and Algorithms.

Since Algorithms was a class with only static member functions, I converted it to a namespace. I fixed the layout on AlcoholTool so it works on high DPI displays.

There is still some minor bug with calls to BtDensityEdit::toSI() generating WARNING : QSettings::value: Empty key passed, in 0 but I think this is unrelated to the changes here.