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

COMP: Ensure DICOMWidget compatibility with Qt 5.12.8 #1200

Merged
merged 3 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: ["ubuntu-latest", "ubuntu-20.04"]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

Expand All @@ -32,12 +36,6 @@ jobs:
- name: Retrieve new lists of APT packages
run: sudo apt-get update

- name: Install DCMTK
run: |
sudo apt-get install -y \
dcmtk \
libdcmtk-dev

- name: Install Qt
run: |
sudo apt-get install -y \
Expand All @@ -53,6 +51,7 @@ jobs:
libxt-dev

- name: Install VTK
if: matrix.runs-on == 'ubuntu-latest'
run: |
sudo apt-get install -y \
libvtk9-dev \
Expand All @@ -63,15 +62,14 @@ jobs:
cmake \
-DCTK_QT_VERSION:STRING=5 \
-DCTK_ENABLE_Widgets:BOOL=ON \
-DCTK_USE_SYSTEM_VTK:BOOL=ON \
-DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON \
-DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=ON \
-DCTK_USE_SYSTEM_DCMTK:BOOL=ON \
-DCTK_USE_SYSTEM_VTK:BOOL=$CTK_USE_VTK \
-DCTK_LIB_Visualization/VTK/Widgets:BOOL=$CTK_USE_VTK \
-DCTK_LIB_Visualization/VTK/Widgets_USE_TRANSFER_FUNCTION_CHARTS:BOOL=$CTK_USE_VTK \
-DCTK_APP_ctkDICOM:BOOL=ON \
-DCTK_LIB_DICOM/Core:BOOL=ON \
-DCTK_LIB_DICOM/Widgets:BOOL=ON \
-DCTK_LIB_Scripting/Python/Core:BOOL=ON \
-DCTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK:BOOL=ON \
-DCTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK:BOOL=$CTK_USE_VTK \
-DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTCORE:BOOL=ON \
-DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTGUI:BOOL=ON \
-DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTUITOOLS:BOOL=ON \
Expand All @@ -82,6 +80,8 @@ jobs:
-DCTK_ENABLE_Python_Wrapping:BOOL=ON \
-B CTK-build \
-S .
env:
CTK_USE_VTK: "${{ matrix.runs-on == 'ubuntu-latest' && 'ON' || 'OFF' }}"

- name: Display Qt5_DIR
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,6 @@
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
<property name="placeholderText">
<string/>
</property>
<property name="frame">
<bool>true</bool>
</property>
Expand Down
5 changes: 5 additions & 0 deletions Libs/DICOM/Widgets/ctkDICOMJobListWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,12 @@ void QCenteredItemModel::setProgressBar(int row, const ctkDICOMJobDetail &td, ct
//----------------------------------------------------------------------------
void QCenteredItemModel::clearCompletedJobs()
{
#if (QT_VERSION >= QT_VERSION_CHECK(5,15,0))
QList<QStandardItem*> list = this->findItems(tr("completed"), Qt::MatchRegularExpression, Columns::Status);
#else
QList<QStandardItem*> list = this->findItems(tr("completed"), Qt::MatchRegExp, Columns::Status);
#endif

foreach (QStandardItem* item, list)
{
this->removeRow(item->row());
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Common Toolkit

[![CircleCI Status][circleci-badge]][circleci-link]
[![Actions Status][actions-badge]][actions-link]
[![License][license-badge]][license-link]

[circleci-badge]: https://dl.circleci.com/status-badge/img/gh/commontk/CTK/tree/master.svg?style=shield
[circleci-link]: https://dl.circleci.com/status-badge/redirect/gh/commontk/CTK/tree/master
[actions-badge]: https://github.com/commontk/CTK/actions/workflows/ci.yml/badge.svg
[actions-link]: https://github.com/commontk/CTK/actions

[license-badge]: https://img.shields.io/github/license/commontk/CTK?color=blue
[license-link]: https://github.com/commontk/CTK/blob/master/LICENSE
Expand Down