--- a/src/gui/widgets/qprintpreviewwidget.cpp Tue Jan 26 12:42:25 2010 +0200
+++ b/src/gui/widgets/qprintpreviewwidget.cpp Tue Feb 02 00:43:10 2010 +0200
@@ -663,9 +663,21 @@
}
/*!
+ \obsolete
+ Returns the number of pages in the preview.
+ \sa pageCount()
+*/
+int QPrintPreviewWidget::numPages() const
+{
+ Q_D(const QPrintPreviewWidget);
+ return d->pages.size();
+}
+
+/*!
+ \since 4.6
Returns the number of pages in the preview.
*/
-int QPrintPreviewWidget::numPages() const
+int QPrintPreviewWidget::pageCount() const
{
Q_D(const QPrintPreviewWidget);
return d->pages.size();