mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ba30d070c9
commit
d853e9bcff
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QBrush>
|
#include <QBrush>
|
||||||
|
#include <QFont>
|
||||||
|
|
||||||
extern struct tank_info tank_info[100];
|
extern struct tank_info tank_info[100];
|
||||||
|
|
||||||
|
@ -610,6 +611,11 @@ QVariant DiveTripModel::data(const QModelIndex& index, int role) const
|
||||||
if (!index.isValid())
|
if (!index.isValid())
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
|
if (role == Qt::FontRole){
|
||||||
|
QFont font;
|
||||||
|
font.setPointSizeF(font.pointSizeF() * 0.7);
|
||||||
|
return font;
|
||||||
|
}
|
||||||
TreeItemDT* item = static_cast<TreeItemDT*>(index.internalPointer());
|
TreeItemDT* item = static_cast<TreeItemDT*>(index.internalPointer());
|
||||||
|
|
||||||
return item->data(index.column(), role);
|
return item->data(index.column(), role);
|
||||||
|
|
Loading…
Add table
Reference in a new issue