summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index bb623243e..14c3cb5ea 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1683,3 +1683,11 @@ void GasSelectionModel::repopulate()
{
setStringList(DivePlannerPointsModel::instance()->getGasList());
}
+
+QVariant GasSelectionModel::data(const QModelIndex& index, int role) const
+{
+ if(role == Qt::FontRole){
+ return defaultModelFont();
+ }
+ return QStringListModel::data(index, role);
+}