summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-19 10:46:49 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-19 10:46:49 -0300
commitd853e9bcff0b14e2a3637c12b35f1f6d8c1fdc22 (patch)
tree26f8382a14e0ac96c64212055bd697b3b249751d /qt-ui
parentba30d070c92e6b634df86007ea27ca040682171b (diff)
downloadsubsurface-d853e9bcff0b14e2a3637c12b35f1f6d8c1fdc22.tar.gz
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 <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/models.cpp6
1 files changed, 6 insertions, 0 deletions
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 <QDebug>
#include <QColor>
#include <QBrush>
+#include <QFont>
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<TreeItemDT*>(index.internalPointer());
return item->data(index.column(), role);