summaryrefslogtreecommitdiffstats
path: root/qt-ui/tableview.cpp
diff options
context:
space:
mode:
authorGravatar Patrick Valsecchi <patrick@thus.ch>2013-10-01 15:52:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-01 09:49:41 -0700
commitf02b5e5d9093cb8e3049d1c02d5f8b321e101749 (patch)
treee826d6887dbebf55a70a406a93b4962fa2cb4013 /qt-ui/tableview.cpp
parent1524b1a0aee3086c61d9b28fff43832b30a76948 (diff)
downloadsubsurface-f02b5e5d9093cb8e3049d1c02d5f8b321e101749.tar.gz
Fix weight adding in the Qt UI & fix the header height for tables
Fixes #203 Signed-off-by: Patrick Valsecchi <patrick@thus.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tableview.cpp')
-rw-r--r--qt-ui/tableview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp
index 88a9c3fb9..02bf20843 100644
--- a/qt-ui/tableview.cpp
+++ b/qt-ui/tableview.cpp
@@ -64,9 +64,8 @@ void TableView::setModel(QAbstractItemModel *model){
}
s.endGroup();
- ui->tableView->horizontalHeader()->setResizeMode(0, QHeaderView::Fixed);
QFontMetrics metrics(defaultModelFont());
- ui->tableView->verticalHeader()->setDefaultSectionSize( metrics.height() + 8 );
+ ui->tableView->horizontalHeader()->setMinimumHeight(metrics.height() + 10);
}
void TableView::fixPlusPosition()