mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 08:34:38 +03:00
Fixed refresh pages
This commit is contained in:
parent
ca1a700b61
commit
2aec1cfc26
@ -75,6 +75,7 @@ PreviewReportWidget::~PreviewReportWidget()
|
||||
|
||||
void PreviewReportWidget::initPreview()
|
||||
{
|
||||
ui->graphicsView->resetMatrix();
|
||||
ui->graphicsView->setScene(d_ptr->m_previewPage);
|
||||
ui->graphicsView->centerOn(0, 0);
|
||||
ui->graphicsView->scale(0.5,0.5);
|
||||
@ -207,7 +208,7 @@ void PreviewReportWidget::refreshPages()
|
||||
ReportPages pages = d_ptr->m_report->renderToPages();
|
||||
d_ptr->m_report->dataManager()->setDesignTime(true);
|
||||
if (pages.count()>0){
|
||||
d_ptr->m_reportPages = pages;
|
||||
d_ptr->setPages(pages);
|
||||
if (!d_ptr->m_reportPages.isEmpty()){
|
||||
d_ptr->m_previewPage->setPageItems(d_ptr->m_reportPages);
|
||||
d_ptr->m_changingPage = true;
|
||||
|
Loading…
Reference in New Issue
Block a user