mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 09:29:37 +00:00
Revert "HistoryView: fix deprecation warning"
This reverts commit 360da46157
.
This commit is contained in:
parent
d035fd253d
commit
2ba7467674
1 changed files with 4 additions and 4 deletions
|
@ -116,8 +116,8 @@ void HistoryView::showHeaderMenu(const QPoint& position)
|
|||
{
|
||||
const QList<QAction*> actions = m_columnActions->actions();
|
||||
for (auto& action : actions) {
|
||||
Q_ASSERT(static_cast<QMetaType::Type>(action->data().typeId()) == QMetaType::Int);
|
||||
if (static_cast<QMetaType::Type>(action->data().typeId()) != QMetaType::Int) {
|
||||
Q_ASSERT(static_cast<QMetaType::Type>(action->data().type()) == QMetaType::Int);
|
||||
if (static_cast<QMetaType::Type>(action->data().type()) != QMetaType::Int) {
|
||||
continue;
|
||||
}
|
||||
int columnIndex = action->data().toInt();
|
||||
|
@ -132,8 +132,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<QMetaType::Type>(action->data().typeId()) == QMetaType::Int);
|
||||
if (static_cast<QMetaType::Type>(action->data().typeId()) != QMetaType::Int) {
|
||||
Q_ASSERT(static_cast<QMetaType::Type>(action->data().type()) == QMetaType::Int);
|
||||
if (static_cast<QMetaType::Type>(action->data().type()) != QMetaType::Int) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue