Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 80a04bd5 authored by John Layt's avatar John Layt

Whoops! Didn't relise we had an API/BIC guarantee on Okular. Restore previous

API and make it call the new API.

CCMAIL: kde-bindings@kde.org
CCMAIL: aacid@kde.org
CCBUG: 194586


svn path=/trunk/KDE/kdegraphics/okular/; revision=1134631
parent b30305b6
...@@ -145,6 +145,11 @@ int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDele ...@@ -145,6 +145,11 @@ int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDele
return ret; return ret;
} }
QList<int> FilePrinter::pageList( QPrinter &printer, int lastPage, const QList<int> &selectedPageList )
{
return pageList( printer, lastPage, 0, selectedPageList );
}
QList<int> FilePrinter::pageList( QPrinter &printer, int lastPage, QList<int> FilePrinter::pageList( QPrinter &printer, int lastPage,
int currentPage, const QList<int> &selectedPageList ) int currentPage, const QList<int> &selectedPageList )
{ {
......
...@@ -102,12 +102,22 @@ public: ...@@ -102,12 +102,22 @@ public:
* *
* @param printer the print settings to use * @param printer the print settings to use
* @param lastPage the last page number, needed if AllPages option is selected * @param lastPage the last page number, needed if AllPages option is selected
* @param currentPage the current page number, needed if CurrentPage option is selected
* @param selectedPageList list of pages to use if Selection option is selected * @param selectedPageList list of pages to use if Selection option is selected
* @returns Returns list of pages to print * @returns Returns list of pages to print
*/ */
static QList<int> pageList( QPrinter &printer, int lastPage, static QList<int> pageList( QPrinter &printer, int lastPage,
int currentPage, const QList<int> &selectedPageList ); int currentPage, const QList<int> &selectedPageList );
/** Return the list of pages selected by the user in the Print Dialog
*
* @param printer the print settings to use
* @param lastPage the last page number, needed if AllPages option is selected
* @param selectedPageList list of pages to use if Selection option is selected
* @returns Returns list of pages to print
*/
static QList<int> pageList( QPrinter &printer, int lastPage, const QList<int> &selectedPageList );
/** Return the range of pages selected by the user in the Print Dialog /** Return the range of pages selected by the user in the Print Dialog
* *
* @param printer the print settings to use * @param printer the print settings to use
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment