From eab31855f51623d1e816f557792860fb10430be8 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 11 Jul 2013 00:48:38 +0300 Subject: 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 --- qt-ui/printlayout.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'qt-ui/printlayout.h') 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 -- cgit v1.2.3-70-g09d2