summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/models.cpp8
-rw-r--r--qt-ui/models.h1
2 files changed, 9 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);
+}
diff --git a/qt-ui/models.h b/qt-ui/models.h
index 88e76a46f..af4659e9e 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -304,6 +304,7 @@ class GasSelectionModel : public QStringListModel{
public:
static GasSelectionModel* instance();
Qt::ItemFlags flags(const QModelIndex& index) const;
+ virtual QVariant data(const QModelIndex& index, int role) const;
public slots:
void repopulate();
};