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

Browser thumbnails #1063

Merged
merged 3 commits into from
Jan 22, 2023
Merged

Browser thumbnails #1063

merged 3 commits into from
Jan 22, 2023

Conversation

lassoan
Copy link
Member

@lassoan lassoan commented Jan 20, 2023

This pull request adds image thumbnail display to the DICOM metadata viewer window:

image

This pull request replaces the WIP pull request by @pieper - #979 (comment)

pieper and others added 3 commits January 20, 2023 14:47
To allow a way to reduce "time to first image" in the DICOM browser and help testing troubleshooting, an image thumbnail is displayed in the DICOM metadata browser window.
The thumbnail is only retrieved if the collapsible section is open (to save space and improve performance when accessing large images).

Based on ProjectWeek discussion:
https://projectweek.na-mic.org/PW35_2021_Virtual/Projects/mpReview/

Co-authored-by: Andras Lasso <lasso@queensu.ca>
The initial direction of the double-arrow button was incorrect (left-to-right instead of right-to-left), as the icon was only updated when the user clicked on it,
and not when the checked state was changed by calling `setChecked()`.
After the DICOM metadata viewer window was show maximized and then closed by hitting Escape button: the metadata viewer opened the widget maximized, but the layout inside was much smaller.

Applied parts of [this workaround](https://stackoverflow.com/questions/44005852/qdockwidgetrestoregeometry-not-working-correctly-when-qmainwindow-is-maximized) to ensure that the widget size is restored when the window is maximized.
@lassoan lassoan requested a review from pieper January 20, 2023 19:51
@lassoan lassoan self-assigned this Jan 20, 2023
Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pieper
Copy link
Member

pieper commented Jan 22, 2023

I think we should also make this dialog non-modal, but that can be a different PR.

@lassoan lassoan merged commit 2daac1c into commontk:master Jan 22, 2023
@lassoan lassoan deleted the browser-thumbnails branch January 22, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants