diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-11 21:40:22 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-11 21:40:22 -0700 |
commit | 0d9a1946fa04c3c806d249f0c1466a4163547dbc (patch) | |
tree | 59d98f9ab795d8f6bf0eaefa6662abc9bb7745d0 /qt-ui/printlayout.cpp | |
parent | 6699dab9522420991b961d1006fa75bb6dbbfcaf (diff) | |
download | subsurface-0d9a1946fa04c3c806d249f0c1466a4163547dbc.tar.gz |
Printing: change the header to show depth / duration
At least for my dives there wasn't enough space for depth and duration in
the header, most likely because I made the last two columns smaller to
create more space for tags and suit.
With this commit the depth and doration in the header now spans two
columns and easily fits.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r-- | qt-ui/printlayout.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index bae468c44..dd23d1004 100644 --- a/qt-ui/printlayout.cpp +++ b/qt-ui/printlayout.cpp @@ -252,8 +252,10 @@ QTableView *PrintLayout::createProfileTable(ProfilePrintModel *model, const int const int cols = model->columnCount(); const int rows = model->rowCount(); // info on top - table->setSpan(0, 0, 1, 4); - table->setSpan(1, 0, 1, 4); + table->setSpan(0, 0, 1, 3); + table->setSpan(1, 0, 1, 3); + table->setSpan(0, 3, 1, 2); + table->setSpan(1, 3, 1, 2); // gas used table->setSpan(2, 0, 1, 2); table->setSpan(3, 0, 1, 2); |