Mercurial > hg > syntilista
comparison src/util.h @ 246:43a5e09bb832
Split some utility functions to util.{h,cpp}
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 08 May 2018 13:14:29 +0300 |
parents | |
children | 4d2b37a0acf2 |
comparison
equal
deleted
inserted
replaced
245:f1b41bdabe12 | 246:43a5e09bb832 |
---|---|
1 // | |
2 // Syntilista - debt list/management database program | |
3 // Programmed and designed by Matti Hämäläinen <ccr@tnsp.org> | |
4 // (C) Copyright 2017-2018 Tecnic Software productions (TNSP) | |
5 // | |
6 // Distributed under 3-clause BSD style license, refer to | |
7 // included file "COPYING" for exact terms. | |
8 // | |
9 #ifndef SL_UTIL_H | |
10 #define SL_UTIL_H | |
11 | |
12 double slMoneyStrToValue(const QString &str); | |
13 QString slMoneyValueToStr(double val); | |
14 QString slMoneyValueToStrSign(double val); | |
15 QString slCleanupStr(const QString &str); | |
16 const QDateTime slDateTimeToLocal(const QDateTime &val); | |
17 const QString slDateTimeToStr(const QDateTime &val); | |
18 | |
19 void slLog(const QString &mtype, const QString &msg); | |
20 int slErrorMsg(const QString &title, const QString &msg); | |
21 bool slCheckAndReportSQLError(const QString where, const QSqlError &err, bool report = false); | |
22 | |
23 | |
24 #endif // SL_UTIL_H |