src/gui/widgets/qprintpreviewwidget.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   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