X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Ftable-model.cpp;h=24578e61cf57eb5ec5417381a68cc670e577a305;hb=d4c3c8552aae0328f8169f668b4ff0eb25ea41b1;hp=649949c2f0d7741867b1a77607ffec29caa36bff;hpb=37b773562564b17d942591373243fb78603bf2f1;p=scorecard diff --git a/src/table-model.cpp b/src/table-model.cpp index 649949c..24578e6 100644 --- a/src/table-model.cpp +++ b/src/table-model.cpp @@ -122,8 +122,10 @@ QVariant ScoreTableModel::data(const QModelIndex &index, int role) const // if (role == Qt::FontRole) { QFont font; - font.setBold(true); - font.setPointSize(26); + font.setPointSize(fontSize); + if (row == ROW_HOLE || row == ROW_HOLE_2) { + font.setBold(true); + } return font; } @@ -199,6 +201,11 @@ QVariant ScoreTableModel::headerData(int section, Qt::Orientation orientation, i if (orientation == Qt::Horizontal) return QVariant(); + if (role == Qt::FontRole) { + QFont font; + font.setPointSize(fontSize); + return font; + } if (role == Qt::DisplayRole) { switch(section) { case ROW_HOLE: @@ -263,11 +270,12 @@ QVariant CourseTableModel::data(const QModelIndex &index, int role) const // FONT // if (role == Qt::FontRole) { + QFont font; + font.setPointSize(fontSize); if (row == ROW_HOLE || row == ROW_HOLE_2) { - QFont font; font.setBold(true); - return font; } + return font; } // // COLORS @@ -338,6 +346,11 @@ QVariant CourseTableModel::headerData(int section, Qt::Orientation orientation, if (orientation == Qt::Horizontal) return QVariant(); + if (role == Qt::FontRole) { + QFont font; + font.setPointSize(fontSize); + return font; + } if (role == Qt::DisplayRole) { switch(section) { case ROW_HOLE: