# HG changeset patch # User Matti Hamalainen # Date 1525727914 -10800 # Node ID 14c6a4d40232db2ca02a968ff919e3951690c172 # Parent 9626307f3eebd7ee5277ca33349703073d16747c Move settings struct definition to main.h diff -r 9626307f3eeb -r 14c6a4d40232 src/main.cpp --- a/src/main.cpp Mon May 07 23:33:52 2018 +0300 +++ b/src/main.cpp Tue May 08 00:18:34 2018 +0300 @@ -16,23 +16,11 @@ #include "runguard.h" -// -// Application settings struct + // -struct -{ - QPoint uiPos; - QSize uiSize; - double uiScale; // Global UI scale factor - - QString dataPath; // Application data path/directory - - // Backup related settings - int dbBackupMode; - QString dbBackupURL; - QString dbBackupSecret; - QDateTime dbLastBackup; -} settings; +// Global struct for settings +// +SLAppSettings settings; // diff -r 9626307f3eeb -r 14c6a4d40232 src/main.h --- a/src/main.h Mon May 07 23:33:52 2018 +0300 +++ b/src/main.h Tue May 08 00:18:34 2018 +0300 @@ -50,6 +50,27 @@ // +// Application settings struct +// +typedef struct +{ + QPoint uiPos; + QSize uiSize; + double uiScale; // Global UI scale factor + + QString dataPath; // Application data path/directory + + // Backup related settings + int dbBackupMode; + QString dbBackupURL; + QString dbBackupSecret; + QDateTime dbLastBackup; +} SLAppSettings; + +extern SLAppSettings settings; + + +// // Person information record // class SLPersonInfo : public QObject