[okular] [Bug 405709] [Feature request] Printing to PDF - remember last used location
Michael Weghorn
bugzilla_noreply at kde.org
Fri Mar 22 00:01:08 GMT 2019
https://bugs.kde.org/show_bug.cgi?id=405709
Michael Weghorn <m.weghorn at posteo.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |m.weghorn at posteo.de
--- Comment #2 from Michael Weghorn <m.weghorn at posteo.de> ---
(In reply to Ovidiu-Florin BOGDAN from comment #0)
> OBSERVED RESULT
> The proposed location is always the location of the original file.
That's not exactly what I get. The suggested path in my case is the working
directory + a filename appended (based on the document that is open), which is
not necessarily the same location as that of the currently open file.
At a quick glance, it looks to me like the current handling is implemented in
the Qt print dialog, more precisely the 'QUnixPrintWidget::QUnixPrintWidget'
constructor, s.
https://code.qt.io/cgit/qt/qtbase.git/tree/src/printsupport/dialogs/qprintdialog_unix.cpp#n1412
.
(In reply to Ovidiu-Florin BOGDAN from comment #1)
> Also it would be useful to remember the last printer used. It always
> presents the default printer.
I'm quite sure this is also what the Qt print dialog does, nothing
Okular-specific.
Kate e.g., which also uses the Qt print dialog, behaves the same way in my
case.
Calling QPrinter::setOutputFileName should probably make the above code take up
the path set this way (though I didn't have any closer look), but I'm unsure
whether it makes sense to do this specifically just for Okular (and what else
would have to be taken into account).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list