0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00

Fixed refresh pages

This commit is contained in:
Arin Alex 2016-04-01 23:39:07 +03:00
parent ca1a700b61
commit 2aec1cfc26

View File

@ -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;