equal
deleted
inserted
replaced
661 d->zoomMode = QPrintPreviewWidget::CustomZoom; |
661 d->zoomMode = QPrintPreviewWidget::CustomZoom; |
662 d->setZoomFactor(factor); |
662 d->setZoomFactor(factor); |
663 } |
663 } |
664 |
664 |
665 /*! |
665 /*! |
|
666 \obsolete |
666 Returns the number of pages in the preview. |
667 Returns the number of pages in the preview. |
|
668 \sa pageCount() |
667 */ |
669 */ |
668 int QPrintPreviewWidget::numPages() const |
670 int QPrintPreviewWidget::numPages() const |
|
671 { |
|
672 Q_D(const QPrintPreviewWidget); |
|
673 return d->pages.size(); |
|
674 } |
|
675 |
|
676 /*! |
|
677 \since 4.6 |
|
678 Returns the number of pages in the preview. |
|
679 */ |
|
680 int QPrintPreviewWidget::pageCount() const |
669 { |
681 { |
670 Q_D(const QPrintPreviewWidget); |
682 Q_D(const QPrintPreviewWidget); |
671 return d->pages.size(); |
683 return d->pages.size(); |
672 } |
684 } |
673 |
685 |