Skip to content

Commit

Permalink
COMP: Fix Qt4 ctkDICOMTableView build error using setResizeMode
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Nov 4, 2021
1 parent f2f0284 commit f4d3352
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Libs/DICOM/Widgets/ctkDICOMTableView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,12 @@ void ctkDICOMTableViewPrivate::applyColumnProperties()
qWarning() << "Invalid ColumnDisplayProperties Format string for column " << columnName << ": " << fieldFormat;
}
}
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
this->tblDicomDatabaseView->horizontalHeader()->setResizeMode(col, columnResizeMode);
#else
this->tblDicomDatabaseView->horizontalHeader()->setSectionResizeMode(col, columnResizeMode);
#endif

if (columnResizeMode == QHeaderView::Stretch && visibility)
{
stretchedColumnFound = true;
Expand Down

0 comments on commit f4d3352

Please sign in to comment.