Brewtarget / brewtarget

Main brewtarget source code repository.
GNU General Public License v3.0
313 stars 134 forks source link

Streamline our custom Label/LineEdit system #745

Closed matty0ung closed 1 year ago

matty0ung commented 1 year ago

Broadly speaking, the idea was to create two new classes, SmartLabel and SmartLineEdit replace the inheritance hierarchies of BtLabel and BtLineEdit. Having to create a new (albeit trivial) subclass of each of these for each new type of thing we want to measure was becoming unwieldy. Also, as @mikfire has previously noted, it's a pain to have to remember which version of BtLineEdit etc to use where in the .ui file.

There is slightly more to it, specifically:

Various bits of .ui files are simplified as, eg, signal connections are done in code now.

This should fix https://github.com/Brewtarget/brewtarget/issues/733

Also includes fixes for https://github.com/Brewtarget/brewtarget/issues/741 and https://github.com/Brewtarget/brewtarget/issues/743