mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Draw buffer commiting
This commit is contained in:
@@ -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);
|
||||
|
@@ -40,6 +40,8 @@ public:
|
||||
explicit OutputPreviewDialog(const pdf::PDFDocument* document, pdf::PDFWidget* widget, QWidget* parent);
|
||||
virtual ~OutputPreviewDialog() override;
|
||||
|
||||
virtual void resizeEvent(QResizeEvent* event) override;
|
||||
|
||||
private:
|
||||
void updateImage();
|
||||
|
||||
|
Reference in New Issue
Block a user