void CourseDialog::createButton(QWidget *parent)
{
+ Q_UNUSED(parent);
pushButtonUp = new QPushButton(tr("+"));
connect(pushButtonUp, SIGNAL(clicked()), this, SLOT(up()));
QVector<QString> &hcp,
QVector<QString> &len)
{
+ Q_UNUSED(len);
for (int i = 0; i < par.size(); i++) {
Hole *hole = holeList.at(i);
if (hole->getPar() != par[i])
void ScoreDialog::createButton(QWidget *parent)
{
+ Q_UNUSED(parent);
pushButtonUp = new QPushButton(tr("+"));
connect(pushButtonUp, SIGNAL(clicked()), this, SLOT(up()));
int StatModel::rowCount(const QModelIndex & parent) const
{
+ Q_UNUSED(parent);
return ROWS;
}
int StatModel::columnCount(const QModelIndex & parent) const
{
+ Q_UNUSED(parent);
return COLS;
}
QVariant ScoreTableModel::data(const QModelIndex &index, int role) const
{
- // TODO: move away from the stack
-
if (!index.isValid())
return QVariant();
// the empty cell.
if ((row == ROW_HOLE && col != 10) || row == ROW_HOLE_2) {
QBrush brush(ScoreColor::holeBg());
+ //QBrush brush(Qt::red);
return brush;
}
if (score && course && (row == ROW_SCORE || row == ROW_SCORE_2)) {
#define ROW_COUNT 3
#define COL_COUNT 9
-// TODO: change name to ScoreTableModel
class ScoreTableModel : public QAbstractTableModel
{