From: gg Date: Fri, 9 Jan 2026 22:31:58 +0000 (-0500) Subject: more deprecation warnings resolved X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=8fa89ac3cc8a109e58a7122666807f72c4639955;p=gamesguru%2Ffeather.git more deprecation warnings resolved --- diff --git a/src/model/HistoryView.cpp b/src/model/HistoryView.cpp index c9820971..eb10219e 100644 --- a/src/model/HistoryView.cpp +++ b/src/model/HistoryView.cpp @@ -115,8 +115,8 @@ void HistoryView::showHeaderMenu(const QPoint& position) { const QList actions = m_columnActions->actions(); for (auto& action : actions) { - Q_ASSERT(static_cast(action->data().type()) == QMetaType::Int); - if (static_cast(action->data().type()) != QMetaType::Int) { + Q_ASSERT(static_cast(action->data().typeId()) == QMetaType::Int); + if (static_cast(action->data().typeId()) != QMetaType::Int) { continue; } int columnIndex = action->data().toInt(); @@ -131,8 +131,8 @@ void HistoryView::toggleColumnVisibility(QAction* action) // Verify action carries a column index as data. Since QVariant.toInt() // below will accept anything that's interpretable as int, perform a type // check here to make sure data actually IS int - Q_ASSERT(static_cast(action->data().type()) == QMetaType::Int); - if (static_cast(action->data().type()) != QMetaType::Int) { + Q_ASSERT(static_cast(action->data().typeId()) == QMetaType::Int); + if (static_cast(action->data().typeId()) != QMetaType::Int) { return; }