[okular] [Bug 463732] Print Dialog should remember PDF Options

Martin Schnitkemper bugzilla_noreply at kde.org
Wed Jan 11 10:04:31 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=463732

Martin Schnitkemper <martin.schnitkemper at nexgo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.schnitkemper at nexgo.d
                   |                            |e

--- Comment #2 from Martin Schnitkemper <martin.schnitkemper at nexgo.de> ---
I'm not the expert, but the decision is made in core/printoptionswidget.cpp:

| {
|     setWindowTitle(i18n("Print Options"));
|     QFormLayout *layout = new QFormLayout(this);
|     m_ignorePrintMargins = new QComboBox;
|     // value indicates whether full page is enabled (i.e. print margins
ignored)
|     m_ignorePrintMargins->insertItem(0, i18n("Fit to printable area"),
false);
|     m_ignorePrintMargins->insertItem(1, i18n("Fit to full page"), true);
|     layout->addRow(i18n("Scale mode:"), m_ignorePrintMargins);
| }    

Then it should be possible to store the return value ("true" or "false") as a
status in ~/.config/okularrc and when opening the dialog again,
read the value and set it as default.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list