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 DICOM tests and update ctkFileDialog to consider AA_DontUseNativeDialogs attribute #1166

Merged
merged 6 commits into from
Jan 13, 2024

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Jan 13, 2024

Ensure the following tests can be executed after installing CTK into <CTK-top-level-build>/CMakeExternals/Install/:

  • ctkDICOMAppWidgetTest1
  • ctkDICOMDatabaseTest2
  • ctkDICOMBrowserTester

It also updates ctkFileDialog to ensure it considers application attribute AA_DontUseNativeDialogs.

jcfr and others added 6 commits January 12, 2024 16:47
This updates the test to account for change in `ctkDICOMTagCache` now
internally storing tag as uppercase hex. See 8418771 ("ENH: Update DICOM
Database with URL Support and Tag Cache Optimization", 2023-12-13)
… default

This commit addresses connectivity problems with the "dicomserver.co.uk"
server, specifically resolving issues encountered running `ctkDICOMDemoSCUTest1`.

Additionally, it updates the default port in `ctkDICOMServerNodeWidget`
and documents the change in the `ctkDICOMQuery` docstring.

Co-authored-by: Andras Lasso <[email protected]>
…tiveDialogs

Follow-up of c4f1eee ("ENH: Update ctkFileDialog to use native dialog
by default", 2021-06-10).
Fixes ctkDICOMAppWidgetTest1 adding a the attribute ctkDICOMAppWidget::CopyOnImport
allowing to configure the import mode.

Co-authored-by: Davide Punzo <[email protected]>
Switch to use of QCommandLineParser to ensure the "-I" is properly
parsed independently of the order of the command line argument.

Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]>
Follow-up of c4f1eee ("ENH: Update ctkFileDialog to use native dialog
by default", 2021-06-10).

Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]>
Comment on lines +148 to +151
if (QGuiApplication::testAttribute(Qt::AA_DontUseNativeDialogs))
{
this->setOptions(QFileDialog::DontUseNativeDialog);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@jcfr jcfr added the Bug label Jan 13, 2024
@jcfr jcfr merged commit a30c3be into commontk:master Jan 13, 2024
2 checks passed
@jcfr jcfr deleted the fix-dicom-tests branch January 13, 2024 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants