Mercurial > hg > syntilista
comparison src/main.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 | ea85ff97a01c |
children | cfaf03d8d23e |
comparison
equal
deleted
inserted
replaced
245:f1b41bdabe12 | 246:43a5e09bb832 |
---|---|
111 | 111 |
112 | 112 |
113 // | 113 // |
114 // Global functions | 114 // Global functions |
115 // | 115 // |
116 double slMoneyStrToValue(const QString &str); | |
117 QString slMoneyValueToStr(double val); | |
118 QString slMoneyValueToStrSign(double val); | |
119 QString slCleanupStr(const QString &str); | |
120 const QDateTime slDateTimeToLocal(const QDateTime &val); | |
121 const QString slDateTimeToStr(const QDateTime &val); | |
122 | |
123 void slLog(const QString &mtype, const QString &msg); | |
124 int slErrorMsg(const QString &title, const QString &msg); | |
125 bool slCheckAndReportSQLError(const QString where, const QSqlError &err, bool report = false); | |
126 | |
127 void slGetPersonInfoRec(QSqlQuery &query, SLPersonInfo &info); | 116 void slGetPersonInfoRec(QSqlQuery &query, SLPersonInfo &info); |
128 bool slGetPersonInfo(qint64 id, SLPersonInfo &info); | 117 bool slGetPersonInfo(qint64 id, SLPersonInfo &info); |
129 void slSetCommonStyleSheet(QWidget *widget); | 118 void slSetCommonStyleSheet(QWidget *widget); |
130 | 119 |
131 | 120 |