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.
17 #define TRACE qDebug()<<QString("[%1] %2(): %3").arg(__FILE__).arg(__func__).arg(__LINE__);
20 static int fontSize = 20;
26 QVariant defaultCourses;
32 static QColor holeBg() { return Qt::white; }
33 static QColor holeFg() { return Qt::yellow; }
34 static QColor birdie() { return Qt::yellow; }
35 static QColor par() { return Qt::green; }
36 static QColor bogey() { return Qt::cyan; }
37 static QColor doubleBogey() { return Qt::red; }
38 static QColor bad() { return Qt::red; }
39 static QColor subTotal() { return Qt::white; }
40 static QColor total() { return Qt::white; }
43 static QString statStyleSheet("QTableView {color : white;}");
44 static QString defaultStyleSheet("QTableView {"
45 "background-color: white;"
47 "border: solid green;"
49 "QHeaderView::section {"
51 "border: solid green;"
54 "QAbstractItemView::item[role=\"header\"]{"
55 "background : orange;"
57 "border: solid green;"
60 "QAbstractItemView::item"
61 "background : orange;"
63 "border: solid green;"
67 "alternate-background-color: yellow;"
68 "background-color: red;"
70 "border: solid green;"
71 "gridline-color: green;"