-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Made error dialog with "Show Details" so wide, that there are no unnecessary line breaks. #4738
Made error dialog with "Show Details" so wide, that there are no unnecessary line breaks. #4738
Conversation
…cessary line breaks.
c387f9f
to
ef33983
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking care.
I have found a typo.
I consider the automatic size changing, that makes the buttons move, a usability issue.
Did you consider to just resize the whole message box to avoid this?
I appreciate this is finally taken care of, thanks! |
I could easily limit it to the real screen width. |
👍 |
Wouldn't the better solution be to make the textbox which contains the error not break lines but instead horizontally scrollable? |
Good idea, though I find horizontal scrolling cumbersome.
? |
… with very small screens
8671f66
to
7b468f8
Compare
I fixed the typo and limited the dialog size in expanded mode to the screen size, to support also devices with tiny low resolution screend like Raspberry Pi. The objective of this PR is to make the message easier readable. Horizontal scrollbars would do the opposite, because than the interesting part of the message on th right would be invisible by default and would always require scrolling. Reformatting or analyzing the message text is out of scope of this PR. Feel free to start a follow up PR. Than there was the remark, if it wouldn't be nicer to show also the collapsed dialog in full width,to prevent the off center dialog. IMHO this is a matter of taste, I think the current solution is the nicer one, because all collapsed dialogs (with or without details) lookinitially the same - just teh position is different. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thank you.
@ronso0 Do you want to have a final look? |
For me this crashes after getScreen returns nullptr (dunno why) |
051ddd4
to
3657c9c
Compare
c3409fc
to
d5f4edf
Compare
a2f2eb4
to
7d40391
Compare
… the dialog will appear as before this PR.
b707561
to
1bd01c6
Compare
Works good, also with Qt5.12. Thank you! |
LGTM, thank you for taking care of this! I'll continue with the line-breaks PR. |
somehow I assumed this would be a UX improvement for 2.3.3 but I didn't check. Does anyone else consider this worth backporting? Is it possible without too much hazzle? Edit |
From my side backporting is Ok! |
Without this PR a ErrorDialog with ShowDetails looked like this (many uneccessary linebreaks and a scrollbar):
Now it looks like this:
Because it's not possible to react on the Show Details button (the event is not public) of QMessageBox, it is neccessary to position the dialog considering the expanded size. Therefore Error Dialogs with details, are openend off center: