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 settingsUserMode("user-mode");
18 static QString settingsDefaultCourses("default-courses");
24 #define TRACE qDebug()<<QString("[%1] %2(): %3").arg(__FILE__).arg(__func__).arg(__LINE__);
27 static int fontSize = 20;
34 QVariant defaultCourses;
41 static QColor holeBg() { return Qt::white; }
42 static QColor holeFg() { return Qt::yellow; }
43 static QColor birdie() { return Qt::yellow; }
44 static QColor par() { return Qt::green; }
45 static QColor bogey() { return Qt::cyan; }
46 static QColor doubleBogey() { return Qt::red; }
47 static QColor bad() { return Qt::red; }
48 static QColor subTotal() { return Qt::white; }
49 static QColor total() { return Qt::white; }
52 static QString statStyleSheet("QTableView {color : white;}");
53 static QString defaultStyleSheet("QTableView {"
54 "background-color: white;"
56 "border: solid green;"
58 "QHeaderView::section {"
60 "border: solid green;"
63 "QAbstractItemView::item[role=\"header\"]{"
64 "background : orange;"
66 "border: solid green;"
69 "QAbstractItemView::item"
70 "background : orange;"
72 "border: solid green;"
76 "alternate-background-color: yellow;"
77 "background-color: red;"
79 "border: solid green;"
80 "gridline-color: green;"