Project

General

Profile

Bug #736 ยป 0006-Qt-Use-QVariant-typeId-instead-of-type-in-Qt6-mode.patch

Marko Lindqvist, 06/28/2024 02:37 PM

View differences:

client/gui-qt/citydlg.cpp
return;
}
#ifndef FC_QT5_MODE
fc_assert_ret(id.typeId() == QMetaType::Int);
#else // FC_QT5_MODE
fc_assert_ret(id.type() == QVariant::Int);
#endif // FC_QT5_MODE
worklist = global_worklist_get(global_worklist_by_id(id.toInt()));
city_set_queue(pcity, worklist);
});
......
return;
}
#ifndef FC_QT5_MODE
fc_assert_ret(id.typeId() == QMetaType::Int);
#else // FC_QT5_MODE
fc_assert_ret(id.type() == QVariant::Int);
#endif // FC_QT5_MODE
worklist = global_worklist_get(global_worklist_by_id(id.toInt()));
city_queue_insert_worklist(pcity, selected_row_p + 1, worklist);
});
    (1-1/1)