Summary: | Print interface doesn't allow to select even/odd page (book printing also ?) | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | David Kremer <david.kremer.dk> |
Component: | print-dialog | Assignee: | KDEPrint Devel Mailinglist <kde-print-devel> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | wishlist | CC: | andresbajotierra, azakitpgr, jlayt, m.weghorn, matija |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
David Kremer
2010-01-17 16:26:04 UTC
@John: isn't this fixed on KDE SC 4.4 / Qt 4.6 ? http://www.layt.net/john/blog/odysseus/the_good_the_bad_and_the_ugly http://www.layt.net/john/blog/odysseus/i_feel_a_chill_breeze_on_the_back_of_my_neck I just found this bug still/again(?) existing on 4.11. IMHO this is a must feature. This regression just hit me too. I'm on Debian testing and was using okular 0.18.4, kde 4.12.4 when I noticed I could no longer print my pdf in this way. Instead I used my wife's computer which still has the previous dialogue. She is using kubuntu: okular 0.14.3, kde 4.8.5. I therefore presume the regression happened between 4.8.5 & 4.12.4 Looking at the source code (kdelibs/kdeui/dialogs/kdeprintdialog.cpp) There is no difference between 4.8.5 & 4.12.4 (or indeed 4.13.1) but looking at the following code: // Hopefully Qt 4.9 will have native support for all Cups options, Odd/Even, and page ranges #if QT_VERSION < KDE_MAKE_VERSION(4,9,0) if ( KCupsOptionsWidget::cupsAvailable() ) { KCupsOptionsPagesWidget *cupsOptionsPagesTab = new KCupsOptionsPagesWidget( dialog ); KCupsOptionsJobWidget *cupsOptionsJobTab = new KCupsOptionsJobWidget( dialog ); dialog->setOptionTabs( QList<QWidget*>() << cupsOptionsPagesTab << cupsOptionsJobTab << customTabs ); KCupsOptionsSettingsWidget *cupsOptionsSettingsTab = new KCupsOptionsSettingsWidget( dialog ); if ( pageSelectPolicy == SystemSelectsPages ) { dialog->setOption( QAbstractPrintDialog::PrintPageRange, true ); cupsOptionsSettingsTab->setSystemSelectsPages( true ); } } else { dialog->setOptionTabs( customTabs ); } #else // Qt >= 4.9 dialog->setOptionTabs( customTabs ); #endif // Qt < 4.9 suggests that my underlying Qt was upgraded changing the branch of code used and the devs hope for Qt 4.9 native support for the lost feature was misplaced hope :-) If I'm correct, I suggest the #if QT_VERSION < KDE_MAKE_VERSION(4,9,0) test is made more realistic so we don't lose the feature while waiting for Qt to do it natively. Thanks Hi, since KDE SC 4.4 / Qt 4.6 we have supported Odd/Even Pages through a bit of a background hack whenever CUPS is used (not for print to file/pdf, and maybe not in Okular?). If it's not working for you with a later combination then something is probably wrong with your distro packaging or system configuration. Qt 4.8 is the last version of Qt in the 4 series and development is closed on it for anything but security patches, and has been for some time now, so this will never be added to it. I did add it to Qt 5.0 which was the next feature release version, so all Qt5/KF5 based programs will have it. KDE4 development is also closed, so there will be no bug fixes there either. Realistically, there's nothing we can do from this end other than to suggest upgrading to KF5 / Plasma 5 based apps, so I will close this bug. Feel free to add comments though if anyone figures out what has gone wrong. |