From 2ec6303f50ee2811aa0504372ddd61227157572b Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 15 Oct 2013 12:54:20 +0300 Subject: printlayout.cpp: Remove convertPixmapToGrayscale() Function is redundant as we should only render the profile with a custom color table. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/printlayout.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'qt-ui/printlayout.cpp') diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index 0c18213e1..f667186da 100644 --- a/qt-ui/printlayout.cpp +++ b/qt-ui/printlayout.cpp @@ -365,17 +365,3 @@ void PrintLayout::addTablePrintHeadingRow(TablePrintModel *model, int row) const model->setData(model->index(row, i), tablePrintHeadingBackground, Qt::BackgroundRole); } } - -// experimental -QPixmap PrintLayout::convertPixmapToGrayscale(QPixmap pixmap) const -{ - QImage image = pixmap.toImage(); - int gray, width = pixmap.width(), height = pixmap.height(); - for (int i = 0; i < width; i++) { - for (int j = 0; j < height; j++) { - gray = qGray(image.pixel(i, j)); - image.setPixel(i, j, qRgb(gray, gray, gray)); - } - } - return pixmap.fromImage(image); -} -- cgit v1.2.3-70-g09d2