summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-10-15 12:54:20 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-15 04:24:27 -0700
commit2ec6303f50ee2811aa0504372ddd61227157572b (patch)
tree0dcd6b160402b1c0326aa8c938eeeb14cd83e3f5 /qt-ui/printlayout.cpp
parent2b98d28980c9c5a45de2d9c7cb7ac65e1380c084 (diff)
downloadsubsurface-2ec6303f50ee2811aa0504372ddd61227157572b.tar.gz
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 <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r--qt-ui/printlayout.cpp14
1 files changed, 0 insertions, 14 deletions
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);
-}