From a07c3d62afe446df4eb6d185a201c235bfe2c64a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 14 Nov 2013 17:43:28 -0200 Subject: Use the correct font for the Air Types Model. The air types model had a font bigger than the other models, this patch creates a data() method that correctly delivers the correct font. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'qt-ui/models.cpp') 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); +} -- cgit v1.2.3-70-g09d2