From 71486efeef384339eb56c8f44ee3f0560e5d93f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Mon, 17 Jun 2024 09:47:56 +0200 Subject: [PATCH] Remove unused method --- imagescrollareagl.cpp | 10 +--------- imagescrollareagl.h | 2 -- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/imagescrollareagl.cpp b/imagescrollareagl.cpp index 18f99cc..9c5de06 100644 --- a/imagescrollareagl.cpp +++ b/imagescrollareagl.cpp @@ -188,12 +188,6 @@ void ImageWidget::bestFit() setOffset(0, 0); } -void ImageWidget::blockRepaint(bool block) -{ - m_blockRepaint = block; - if(!block)update(); -} - void ImageWidget::allocateThumbnails(const QStringList &paths) { makeCurrent(); @@ -323,8 +317,6 @@ void ImageWidget::showThumbnail(bool enable) void ImageWidget::paintGL() { - if(m_blockRepaint)return; - float dx = m_dx; float dy = m_dy; if(m_width > m_image->width() * m_scale) @@ -333,9 +325,9 @@ void ImageWidget::paintGL() dy = -height() * 0.5f + m_image->height() * m_scale * 0.5f; QBrush highlight = style()->standardPalette().highlight(); + f->glClear(GL_COLOR_BUFFER_BIT); if(m_showThumbnails) { - f->glClear(GL_COLOR_BUFFER_BIT); m_vaoThumb->bind(); m_thumbnailTexture->bind(1); if(m_sizesDirty) diff --git a/imagescrollareagl.h b/imagescrollareagl.h index a48bcb2..eec06f0 100644 --- a/imagescrollareagl.h +++ b/imagescrollareagl.h @@ -53,7 +53,6 @@ class ImageWidget : public QOpenGLWidget float m_scale = 1.0f; int m_scaleStop = 0; bool m_bestFit = false; - bool m_blockRepaint = false; bool m_bwImg = false; bool m_falseColor = false; bool m_invert = false; @@ -78,7 +77,6 @@ public: void setWCS(std::shared_ptr wcs); void zoom(int zoom, const QPointF &mousePos = QPointF()); void bestFit(); - void blockRepaint(bool block); void allocateThumbnails(const QStringList &paths); QVector2D getImagePixelCoord(const QVector2D &pos); void setBayerMask(int mask);