stringer.h
891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef STRINGER_H
#define STRINGER_H
#include <QtCore>
#include <QDateTime>
namespace Stringer {
enum datetime_string_type{
datetime_string_type_oneline=0,
datetime_string_type_twoline
};
const QString fontSize14("\
<style>\
span { font-size: 14pt; }\
span.heavy { font-size: 16pt; }\
span.light { font-size: 11pt; }\
span.lightest { font-size: 9pt; }\
</style>");
QString remainingTime(int msecs);
QString remainingTime(int msecs, QString style);
QString remainingTime(qint64 msecs);
QString temperature(int celsius);
QString temperature(int celsius, QString style);
QString temperature(int current, int target);
QString temperature(int current, int target, QString style);
QString unusedTemperature();
QString unusedTemperature(QString style);
QString DateTimeString(const QDateTime &dt_tm, datetime_string_type type=datetime_string_type_twoline);
}
#endif // STRINGER_H