From fc84f8868d6cad30f6e250b3115c1ce1f574e1b5 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 13 Jul 2013 16:12:32 +0300 Subject: Print: add method to convert profile to grayscale (experimental) Add the method PrintLayout::convertPixmapToGrayscale() to convert a rendered profile pixmap to grayscale. It will probably be faster to have ProfileGraphicsView render in grayscale under certain conditions (and use a specific color table) instead - e.g.: ProfileGraphicsView::setPrintMode(bool printMode, bool useGrayScale); Signed-off-by: Lubomir I. Ivanov --- qt-ui/printlayout.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/printlayout.h') diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index cbb1e42ac..7a1922e4a 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -34,6 +34,7 @@ private: QString insertTableHeadingCol(int) const; QString insertTableDataRow(struct dive *) const; QString insertTableDataCol(QString) const; + QPixmap convertPixmapToGrayscale(QPixmap) const; }; #endif -- cgit v1.2.3-70-g09d2