Remove unused method
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user