Draw buffer commiting

This commit is contained in:
Jakub Melka
2021-02-07 18:59:39 +01:00
parent 6a9cc5c5d6
commit f0b1707d12
4 changed files with 95 additions and 19 deletions

View File

@ -47,6 +47,12 @@ OutputPreviewDialog::~OutputPreviewDialog()
delete ui;
}
void OutputPreviewDialog::resizeEvent(QResizeEvent* event)
{
QDialog::resizeEvent(event);
updateImage();
}
void OutputPreviewDialog::updateImage()
{
const pdf::PDFPage* page = m_document->getCatalog()->getPage(ui->pageIndexScrollBar->value() - 1);