diff options
-rw-r--r-- | qt-ui/printlayout.cpp | 14 | ||||
-rw-r--r-- | qt-ui/printlayout.h | 2 |
2 files changed, 0 insertions, 16 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); -} diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index a1f348664..1ed19e271 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -39,8 +39,6 @@ private: void printTable(); void addTablePrintDataRow(TablePrintModel *model, int row, struct dive *dive) const; void addTablePrintHeadingRow(TablePrintModel *model, int row) const; - - QPixmap convertPixmapToGrayscale(QPixmap) const; }; #endif |