chore: remove qt version checks from code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
59bd6a915b
commit
442aae88ce
27 changed files with 2 additions and 182 deletions
|
@ -73,12 +73,8 @@ void VisualGroup::update()
|
|||
positionInRow = 0;
|
||||
maxRowHeight = 0;
|
||||
}
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
QStyleOptionViewItem viewItemOption;
|
||||
view->initViewItemOption(&viewItemOption);
|
||||
#else
|
||||
QStyleOptionViewItem viewItemOption = view->viewOptions();
|
||||
#endif
|
||||
|
||||
auto itemHeight = view->itemDelegate()->sizeHint(viewItemOption, item).height();
|
||||
if (itemHeight > maxRowHeight) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue