2 * Copyright (C) 2009 Sakari Poussa
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 2.
13 static QString settingsGroup("Settings");
14 static QString settingsHcp("hcp");
15 static QString settingsHomeClub("home-club");
16 static QString settingsSortOrder("sort-order");
17 static QString settingsDefaultCourses("default-courses");
23 #define TRACE qDebug()<<QString("[%1] %2(): %3").arg(__FILE__).arg(__func__).arg(__LINE__);
26 static int fontSize = 20;
33 QVariant defaultCourses;
39 static QColor holeBg() { return Qt::white; }
40 static QColor holeFg() { return Qt::yellow; }
41 static QColor birdie() { return Qt::yellow; }
42 static QColor par() { return Qt::green; }
43 static QColor bogey() { return Qt::cyan; }
44 static QColor doubleBogey() { return Qt::red; }
45 static QColor bad() { return Qt::red; }
46 static QColor subTotal() { return Qt::white; }
47 static QColor total() { return Qt::white; }
50 static QString statStyleSheet("QTableView {color : white;}");
51 static QString defaultStyleSheet("QTableView {"
52 "background-color: white;"
54 "border: solid green;"
56 "QHeaderView::section {"
58 "border: solid green;"
61 "QAbstractItemView::item[role=\"header\"]{"
62 "background : orange;"
64 "border: solid green;"
67 "QAbstractItemView::item"
68 "background : orange;"
70 "border: solid green;"
74 "alternate-background-color: yellow;"
75 "background-color: red;"
77 "border: solid green;"
78 "gridline-color: green;"