Skip to content

Commit

Permalink
Merge pull request #85 from OpenHeartDevelopers/feature/qt-5-12-ubuntu
Browse files Browse the repository at this point in the history
Add check for new SkipEmptyParts function
  • Loading branch information
LouiseABowler authored Jul 30, 2024
2 parents 75afd96 + 734febb commit de59271
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,11 @@ bool AtrialFibresView::GetUserScarProjectionInputs(){
MITK_INFO << "[UI] Creating list of thresholds";
separated_thresh_list.removeLast();
separated_thresh_list.removeLast();
separated_thresh_list = thresh_list.split(",", Qt::SkipEmptyParts);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
separated_thresh_list = thresh_list.split(",", Qt::SkipEmptyParts);
#else
separated_thresh_list = thresh_list.split(",", QString::SkipEmptyParts);
#endif
int listspaces = separated_thresh_list.removeAll(" ");
int listduplicates = separated_thresh_list.removeDuplicates();
std::cout << "Spaces in list: " << listspaces << " Duplicates in list: " << listduplicates << '\n';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,11 @@ void AtrialScarView::AutomaticAnalysis() {
MITK_INFO << "[UI] Creating list of thresholds";
separated_thresh_list.removeLast();
separated_thresh_list.removeLast();
separated_thresh_list = thresh_list.split(",", Qt::SkipEmptyParts);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
separated_thresh_list = thresh_list.split(",", Qt::SkipEmptyParts);
#else
separated_thresh_list = thresh_list.split(",", QString::SkipEmptyParts);
#endif
int listspaces = separated_thresh_list.removeAll(" ");
int listduplicates = separated_thresh_list.removeDuplicates();
separated_thresh_list.sort();
Expand Down

0 comments on commit de59271

Please sign in to comment.