diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2014-10-19 16:15:20 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-19 07:23:36 -0700 |
commit | dfec501e7a1cd26dc2ff4d675a3c8d91ac86aaa5 (patch) | |
tree | 08f86ceb31922b2a40d1a16585d421fbfddd008f /qt-ui/tableview.cpp | |
parent | 60702f104ca5f27c6399db22e4a4bdf2d4b6791f (diff) | |
download | subsurface-dfec501e7a1cd26dc2ff4d675a3c8d91ac86aaa5.tar.gz |
Resolution-independent trash icon
Also, generate the corresponding pixmap only once, and distribute it to
all models that need it.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tableview.cpp')
-rw-r--r-- | qt-ui/tableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp index 242141c26..423fcc766 100644 --- a/qt-ui/tableview.cpp +++ b/qt-ui/tableview.cpp @@ -21,7 +21,7 @@ TableView::TableView(QWidget *parent) : QGroupBox(parent) metrics.icon = &defaultIconMetrics(); metrics.col_width = 7*text_em; - metrics.rm_col_width = 3*text_em; + metrics.rm_col_width = metrics.icon->sz_small + 2*metrics.icon->spacing; metrics.header_ht = text_ht + 10; // TODO DPI /* There`s mostly a need for a Mac fix here too. */ |