All fonts are now bigger (20pt)
[scorecard] / src / table-model.cpp
index 649949c..24578e6 100644 (file)
@@ -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: