diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-11 00:48:38 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-11 00:52:39 +0300 |
commit | eab31855f51623d1e816f557792860fb10430be8 (patch) | |
tree | fa0699372a356beced55317cb151c9ae2791ef9a /qt-ui/printlayout.h | |
parent | af1c55c29d55ff697b2a20440c7177fd7e364655 (diff) | |
download | subsurface-eab31855f51623d1e816f557792860fb10430be8.tar.gz |
Print: show column titles for table print
Patch does:
- set individual column width and name
(held in tableColumnNames, tableColumnWidths)
- reduce font size in the table
- more small tweaks in the style sheet
TODO: finish printing all dive data
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index bf34892bf..c55778dd8 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -23,12 +23,17 @@ private: qreal scaleX, scaleY; QRect pageRect; + QStringList tableColumnNames; + QStringList tableColumnWidths; + void setup(); void printSixDives(); void printTwoDives(); void printTable(); QString insertTableHeadingRow(); - QString insertTableDataRow(struct dive *dive); + QString insertTableHeadingCol(int); + QString insertTableDataRow(struct dive *); + QString insertTableDataCol(QString); }; #endif |