Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues with windowed pdf-viewer #3419

Closed
wants to merge 2 commits into from

Conversation

octaeder
Copy link
Contributor

@octaeder octaeder commented Dec 14, 2023

This PR solves following issues found in the UI of the internal windowed pdf-viewer

@@ -3898,6 +3913,7 @@ bool PDFDocument::closeElement()
else if (dwOverview && dwOverview->isVisible()) dwOverview->hide();
else if (configManager->useEscForClosingEmbeddedViewer && isVisible()) {
// Note: avoid crash on osx where esc key is passed to hidden window
toggleFullScreen(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what scenario is fixed here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before closing the window we need to undo the changes done for fullscreen window mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see 3rd list item of PR

actionMagnify=configManager->newManagedAction(menuroot,menuView, "magnify", tr("&Magnify"), this, "", QList<QKeySequence>(),"magnifier-button");
actionScroll=configManager->newManagedAction(menuroot,menuView, "scroll", tr("&Scroll"), this, "", QList<QKeySequence>(),"hand");
actionMagnify=configManager->newManagedAction(menuroot,menuView, "magnify", tr("&Magnify"), pdfWidget, SLOT(magnifierClicked()), QList<QKeySequence>(),"magnifier-button");
actionMagnify->setCheckable(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now magnify can also be unchecked in the menu ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, needs to be fixed

@sunderme
Copy link
Member

I find it hard to decipher what changes are supposed to do what, so I would prefer smaller PR.

@octaeder octaeder marked this pull request as draft December 17, 2023 03:46
@octaeder
Copy link
Contributor Author

This PR is implemented via #3426, #3427, #3428, #3429, #3430, and #3431

@octaeder octaeder closed this Dec 17, 2023
@octaeder octaeder deleted the PDFviewer branch December 17, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants