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 settingsDefaultCourses("default-courses");
22 #define TRACE qDebug()<<QString("[%1] %2(): %3").arg(__FILE__).arg(__func__).arg(__LINE__);
25 static int fontSize = 20;
31 QVariant defaultCourses;
37 static QColor holeBg() { return Qt::white; }
38 static QColor holeFg() { return Qt::yellow; }
39 static QColor birdie() { return Qt::yellow; }
40 static QColor par() { return Qt::green; }
41 static QColor bogey() { return Qt::cyan; }
42 static QColor doubleBogey() { return Qt::red; }
43 static QColor bad() { return Qt::red; }
44 static QColor subTotal() { return Qt::white; }
45 static QColor total() { return Qt::white; }
48 static QString statStyleSheet("QTableView {color : white;}");
49 static QString defaultStyleSheet("QTableView {"
50 "background-color: white;"
52 "border: solid green;"
54 "QHeaderView::section {"
56 "border: solid green;"
59 "QAbstractItemView::item[role=\"header\"]{"
60 "background : orange;"
62 "border: solid green;"
65 "QAbstractItemView::item"
66 "background : orange;"
68 "border: solid green;"
72 "alternate-background-color: yellow;"
73 "background-color: red;"
75 "border: solid green;"
76 "gridline-color: green;"