summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
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);
-}