Remove unused method

This commit is contained in:
2024-06-17 09:47:56 +02:00
parent 8213f6213f
commit 71486efeef
2 changed files with 1 additions and 11 deletions
+1 -9
View File
@@ -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)