summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-05-28 17:17:09 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-29 14:11:12 -0700
commitd84ffa8fc3162692597c19c42e621f7d8ac58dca (patch)
treec0817f3684a6adfa025205506bb2d3672e21e997 /qthelper.h
parenta0f3c9992c0f9d2134742b5ba7fd532094c1a865 (diff)
downloadsubsurface-d84ffa8fc3162692597c19c42e621f7d8ac58dca.tar.gz
Move WeightModel to qt-models
One more step to make it easyer to port the app to Mobile. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
-rw-r--r--qthelper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qthelper.h b/qthelper.h
index 0b1e3b111..310133f36 100644
--- a/qthelper.h
+++ b/qthelper.h
@@ -27,4 +27,10 @@ void add_hash(const QString filename, QByteArray hash);
QString localFilePath(const QString originalFilename);
QString fileFromHash(char *hash);
void learnHash(struct picture *picture, QByteArray hash);
+weight_t string_to_weight(const char *str);
+depth_t string_to_depth(const char *str);
+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);
+
#endif // QTHELPER_H