Commit 94275a57 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

more qt6 fixes

parent fb239391
Pipeline #153622 passed with stage
in 2 minutes and 28 seconds
......@@ -863,7 +863,12 @@ public:
{
const auto rowCount = m_model.rowCount();
int w = 0;
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QStyleOptionViewItem opt = viewOptions();
#else
QStyleOptionViewItem opt;
initViewItemOption(&opt);
#endif
auto delegate = itemDelegate();
for (int i = 0; i < rowCount; ++i) {
w += delegate->sizeHint(opt, m_model.index(i, 0)).width();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment