Mercurial > hg > syntilista
comparison src/main.h @ 240:14c6a4d40232
Move settings struct definition to main.h
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 08 May 2018 00:18:34 +0300 |
parents | 9626307f3eeb |
children | ea85ff97a01c |
comparison
equal
deleted
inserted
replaced
239:9626307f3eeb | 240:14c6a4d40232 |
---|---|
48 #define SL_STR_HELPER(x) #x | 48 #define SL_STR_HELPER(x) #x |
49 #define SL_STR(x) SL_STR_HELPER(x) | 49 #define SL_STR(x) SL_STR_HELPER(x) |
50 | 50 |
51 | 51 |
52 // | 52 // |
53 // Application settings struct | |
54 // | |
55 typedef struct | |
56 { | |
57 QPoint uiPos; | |
58 QSize uiSize; | |
59 double uiScale; // Global UI scale factor | |
60 | |
61 QString dataPath; // Application data path/directory | |
62 | |
63 // Backup related settings | |
64 int dbBackupMode; | |
65 QString dbBackupURL; | |
66 QString dbBackupSecret; | |
67 QDateTime dbLastBackup; | |
68 } SLAppSettings; | |
69 | |
70 extern SLAppSettings settings; | |
71 | |
72 | |
73 // | |
53 // Person information record | 74 // Person information record |
54 // | 75 // |
55 class SLPersonInfo : public QObject | 76 class SLPersonInfo : public QObject |
56 { | 77 { |
57 Q_OBJECT | 78 Q_OBJECT |