[okular] [Bug 478542] Show Signatures Panel should open the sidebar if it is not already visible

2023-12-15 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=478542

Albert Astals Cid  changed:

   What|Removed |Added

 CC||aa...@kde.org,
   ||k...@pusling.com

--- Comment #1 from Albert Astals Cid  ---
Sune this seems something you can probably convince your nice overlords to let
you fix?

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

[okular] [Bug 478577] Cannot make window narrower than ~500 pixels

2023-12-15 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=478577

Bug Janitor Service  changed:

   What|Removed |Added

 Status|REPORTED|ASSIGNED
 Ever confirmed|0   |1

--- Comment #1 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/graphics/okular/-/merge_requests/867

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

[okular] [Bug 478577] New: Cannot make window narrower than ~500 pixels

2023-12-15 Thread chkno
https://bugs.kde.org/show_bug.cgi?id=478577

Bug ID: 478577
   Summary: Cannot make window narrower than ~500 pixels
Classification: Applications
   Product: okular
   Version: 23.04.3
  Platform: NixOS
OS: Linux
Status: REPORTED
  Severity: minor
  Priority: NOR
 Component: general
  Assignee: okular-devel@kde.org
  Reporter: ch...@chkno.net
  Target Milestone: ---

Created attachment 164210
  --> https://bugs.kde.org/attachment.cgi?id=164210=edit
Allow the main window to be resized smaller

SUMMARY
The minimum width of the main Okular window is about 505 pixels.  It declines
to be resized narrower than this, even when the document displayed is much
smaller, for example 70 pixels when zoomed all the way out at 12%.


STEPS TO REPRODUCE
1. Open a document
2. Zoom all the way out (12%)
3. Try to shrink the window

OBSERVED RESULT
The window never gets narrower than ~505 pixels.  85% of horizontal screen
space is wasted on the gray background.

EXPECTED RESULT
I can make the window as narrow as I please.

SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.106.0
Qt Version: Version 5.15.10 (built against 5.15.10)

ADDITIONAL INFORMATION
The cause appears to be that the window refuses to be smaller than the minimum
size of the *welcome screen*, even when the welcome screen is not visible, and
even when the welcome screen was never displayed, such as when okular is
invoked with a command line argument.  The welcome screen is still present in
the UI in a `QStackedWidget` underneath the document view.

This appears to be easy to fix: Just have the `m_centralStackedWidget` report
its size as the currently-visible widget, instead of taking the welcome screen
into account even when it is not displayed.

A patch to fix the problem is attached.

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

[okular] [Bug 478542] Show Signatures Panel should open the sidebar if it is not already visible

2023-12-15 Thread Tristan Miller
https://bugs.kde.org/show_bug.cgi?id=478542

Tristan Miller  changed:

   What|Removed |Added

 CC||psychon...@nothingisreal.co
   ||m

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

[okular] [Bug 478542] New: Show Signatures Panel should open the sidebar if it is not already visible

2023-12-15 Thread Tristan Miller
https://bugs.kde.org/show_bug.cgi?id=478542

Bug ID: 478542
   Summary: Show Signatures Panel should open the sidebar if it is
not already visible
Classification: Applications
   Product: okular
   Version: 23.08.3
  Platform: Other
OS: Linux
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: okular-devel@kde.org
  Reporter: psychon...@nothingisreal.com
  Target Milestone: ---

Created attachment 164183
  --> https://bugs.kde.org/attachment.cgi?id=164183=edit
A signed blank document showing the bug

When opening a digitally signed document, Okular displays a "Show Signatures
Panel" button between the toolbar and the top of the document.  If the sidebar
happens to be visible already, then pressing this button shows the signatures
panel.  But if the sidebar is not already visible, then pressing the button
causes the sidebar button in the toolbar to activate, but the sidebar itself
does not appear.


STEPS TO REPRODUCE
1. Make sure the sidebar is hidden.
2. Open any signed document, such as the attached PDF.
3. Press the "Show Signatures Panel" button.

OBSERVED RESULT
4. The "Show Sidebar" button in the toolbar activates, but the sidebar itself
does not appear.

EXPECTED RESULT
4. The "Show Sidebar" button in the toolbar should activate and the sidebar
itself should appear, with the signatures panel active.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11

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

[okular] [Bug 478540] Can't edit form field after entering invalid character

2023-12-15 Thread Tristan Miller
https://bugs.kde.org/show_bug.cgi?id=478540

Tristan Miller  changed:

   What|Removed |Added

 CC||psychon...@nothingisreal.co
   ||m

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

[okular] [Bug 478540] New: Can't edit form field after entering invalid character

2023-12-15 Thread Tristan Miller
https://bugs.kde.org/show_bug.cgi?id=478540

Bug ID: 478540
   Summary: Can't edit form field after entering invalid character
Classification: Applications
   Product: okular
   Version: 23.08.3
  Platform: Other
OS: Linux
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: PDF backend
  Assignee: okular-devel@kde.org
  Reporter: psychon...@nothingisreal.com
  Target Milestone: ---

Created attachment 164181
  --> https://bugs.kde.org/attachment.cgi?id=164181=edit
Example PDF showing the bug

Some PDF form fields require data in a certain format, and apply some sort of
validation to enforce this requirement. A common example are fields requiring a
telephone number. A problem with Okular is that if the user starts to type
invalid data into such a field, it is no longer possible for the user to edit
or delete the data.  I'm not sure if this is a problem with Okular itself (or
its underlying PDF library) or with how the form designer implemented their
field validation mechanism.  But even if it's the form designer's fault, it
would be nice if Okular could provide some way of overriding the validation and
allowing the user to delete the contents of the field.

This issue happens very often with forms that ask for a phone number and
require only numeric data (but don't tell the user this on the form itself). 
If one starts typing "+" as the prefix for the country code, the field refuses
to accept any further input, and it's also not possible to remove the "+" using
backspace, delete, undo, etc.  The only thing one can do is reload the form and
start filling it in all over again.

STEPS TO REPRODUCE
1. Open the attached PDF.
2. Press the "Show Forms" button.
3. Click on the field for the home phone number.  This field expects a
nine-digit phone number.
4. Type any character other than a digit, such as "+".

OBSERVED RESULT
5. At this point, the field largely stops responding to user input.  No further
data can be typed.  Pressing backspace has no effect. The Undo command has no
effect. Pressing the left cursor key puts the insertion point to the left of
the +, but pressing delete has no effect.  The + can be selected with the
mouse, but it cannot be deleted with backspace, delete, or the Cut command.

EXPECTED RESULT
5. Okular should allow the contents of the field to be edited, or at least the
Undo command should reset the field to its previously blank state.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11

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