diff --git a/Libs/DICOM/Widgets/Resources/UI/ctkDICOMVisualBrowserWidget.ui b/Libs/DICOM/Widgets/Resources/UI/ctkDICOMVisualBrowserWidget.ui index 5422b05067..645d4c9109 100644 --- a/Libs/DICOM/Widgets/Resources/UI/ctkDICOMVisualBrowserWidget.ui +++ b/Libs/DICOM/Widgets/Resources/UI/ctkDICOMVisualBrowserWidget.ui @@ -403,9 +403,6 @@ QComboBox::AdjustToContents - - - true diff --git a/Libs/DICOM/Widgets/ctkDICOMJobListWidget.cpp b/Libs/DICOM/Widgets/ctkDICOMJobListWidget.cpp index dd9a24ae07..e6fa63105b 100644 --- a/Libs/DICOM/Widgets/ctkDICOMJobListWidget.cpp +++ b/Libs/DICOM/Widgets/ctkDICOMJobListWidget.cpp @@ -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 list = this->findItems(tr("completed"), Qt::MatchRegularExpression, Columns::Status); +#else + QList list = this->findItems(tr("completed"), Qt::MatchRegExp, Columns::Status); +#endif + foreach (QStandardItem* item, list) { this->removeRow(item->row());