Move initialization of preferences to helper function

This way we can read the preferences without instantiating the
PreferencesDialog class.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-07-25 22:08:25 -07:00
parent c679ed550e
commit 83c2addfef
4 changed files with 212 additions and 193 deletions

View file

@ -34,4 +34,5 @@ pressure_t string_to_pressure(const char *str);
volume_t string_to_volume(const char *str, pressure_t workp);
fraction_t string_to_fraction(const char *str);
int getCloudURL(QString &filename);
void loadPreferences();
#endif // QTHELPER_H