KDE/kdelibs/khtml

View: New views
1 Messages — Rating Filter:   Alert me  

KDE/kdelibs/khtml

by Bugzilla from john@layt.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SVN commit 1035342 by jlayt:

Enable printing Server Side page selection when CUPS is available.

This change allows the user to enter a page range to print and CUPS will
select the pages for khtml.  Only works under CUPS, does not work on OSX
Windows or lpr.



 M  +1 -2      khtmlview.cpp  


--- trunk/KDE/kdelibs/khtml/khtmlview.cpp #1035341:1035342
@@ -3149,8 +3149,7 @@
     QPointer<KHTMLPrintSettings> printSettings(new KHTMLPrintSettings); //XXX: doesn't save settings between prints like this
     const QPointerDeleter settingsDeleter(printSettings); //the printdialog takes ownership of the settings widget, thus this workaround to avoid double deletion
     QPrinter printer;
-    QPointer<QPrintDialog> dialog = KdePrint::createPrintDialog(&printer, QList<QWidget*>() << printSettings, this);
-    dialog->setOption( QAbstractPrintDialog::PrintPageRange, false);
+    QPointer<QPrintDialog> dialog = KdePrint::createPrintDialog(&printer, KdePrint::SystemSelectsPages, QList<QWidget*>() << printSettings, this);
 
     const QPointerDeleter dialogDeleter(dialog);
 
_______________________________________________
Khtml-cvs mailing list
Khtml-cvs@...
https://mail.kde.org/mailman/listinfo/khtml-cvs