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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qt] Make Close the default button on PPD and actived ond ESC #7956

Merged
merged 1 commit into from Apr 20, 2024

Conversation

Ferenc-
Copy link
Contributor

@Ferenc- Ferenc- commented Apr 19, 2024

No description provided.

Signed-off-by: Ferenc G茅czi <ferenc.gm@gmail.com>
Copy link
Contributor

@pastk pastk left a comment

Choose a reason for hiding this comment

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

It makes "Close" a default button for Enter press (before it was "Route from").

But it doesn't fix the original bug with Esc press or wndow close button click.

upd: qt6.2.4

@Ferenc-
Copy link
Contributor Author

Ferenc- commented Apr 19, 2024

It makes "Close" a default button for Enter press (before it was "Route from").

But it doesn't fix the original bug with Esc press or wndow close button click.

upd: qt6.2.4

True. How about now?

@Ferenc- Ferenc- requested a review from pastk April 19, 2024 14:39
Copy link
Contributor

@pastk pastk left a comment

Choose a reason for hiding this comment

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

works great, thanks!

@@ -26,6 +28,7 @@ void addCommonButtons(QDialog * this_, QDialogButtonBox * dbb, bool shouldShowEd

QPushButton * routeToButton = new QPushButton("Route To");
routeToButton->setIcon(QIcon(":/navig64/point-finish.png"));
routeToButton->setAutoDefault(false);
Copy link
Member

Choose a reason for hiding this comment

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

Why these calls are needed? To avoid capturing "Enter"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, if the user doesn't move the cursor, then the enter would activate the first where the autodefault is not disabled.

@biodranik biodranik merged commit 5dc753e into organicmaps:master Apr 20, 2024
10 checks passed
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.

None yet

3 participants