From d853e9bcff0b14e2a3637c12b35f1f6d8c1fdc22 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 19 May 2013 10:46:49 -0300 Subject: Make the Text on the DiveList be 30% smaller than other text This makes the DiveList be similiar to the GTK one, comparing the size of the text. The current code makes text on the table be 30% smaller. Signed-off-by: Tomaz Canabrava --- qt-ui/models.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 9bc8db0bb..90c826331 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -9,6 +9,7 @@ #include #include #include +#include extern struct tank_info tank_info[100]; @@ -610,6 +611,11 @@ QVariant DiveTripModel::data(const QModelIndex& index, int role) const if (!index.isValid()) return QVariant(); + if (role == Qt::FontRole){ + QFont font; + font.setPointSizeF(font.pointSizeF() * 0.7); + return font; + } TreeItemDT* item = static_cast(index.internalPointer()); return item->data(index.column(), role); -- cgit v1.2.3-70-g09d2