-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaultvalues.cpp
More file actions
60 lines (55 loc) · 1.79 KB
/
defaultvalues.cpp
File metadata and controls
60 lines (55 loc) · 1.79 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "defaultvalues.h"
namespace DefaultValues
{
QFont entryFont;
QColor entryFontColor;
QFont printingFontCategory;
QFont printingFontEntry;
int mainWindowPosition;
QString categoryName;
QString categoryDateTime;
QFont uiFont;
bool entryListFontBold;
bool entryListFontItalic;
QFont labelFont;
QColor labelCategoryBackgroundColor;
QColor labelCategoryFontColor;
QColor labelEntryBackgroundColor;
QColor labelEntryFontColor;
bool windowAlwaysOnTop;
int mainWindowWidth;
int mainWindowHeight;
bool confirmDelete;
bool autoSaveOnLeavingEntry;
bool applySearchFilterToEntryList;
}
using namespace DefaultValues;
DefaultValuesInitializer::DefaultValuesInitializer()
{
}
void DefaultValuesInitializer::initialize()
{
entryFont=QFont(QFont().defaultFamily(),10,QFont::Normal,false);
entryFontColor=QColor(Qt::black);
printingFontCategory=QFont(QFont().defaultFamily(),16,QFont::Bold,false);
printingFontCategory.setUnderline(true);
printingFontEntry=QFont(QFont().defaultFamily(),14,QFont::Bold,false);
printingFontEntry.setUnderline(true);
mainWindowPosition=0;
categoryName="";
categoryDateTime=QDateTime::fromMSecsSinceEpoch(0).toString();
uiFont=QFont(QFont().defaultFamily(),10,QFont::Bold,false);
entryListFontBold=false;
entryListFontItalic=false;
labelFont=QFont(QFont().defaultFamily(),12,QFont::Normal,false);
labelCategoryBackgroundColor=QColor(255, 189, 155);
labelCategoryFontColor=QColor(Qt::black);
labelEntryBackgroundColor=QColor(207, 228, 255);
labelEntryFontColor=QColor(Qt::black);
windowAlwaysOnTop=true;
mainWindowWidth=610;
mainWindowHeight=505;
confirmDelete=true;
autoSaveOnLeavingEntry=false;
applySearchFilterToEntryList=true;
}