fix build for Qt5

This commit is contained in:
garak 2022-04-28 13:33:14 -04:00 committed by garakmon
parent f7a0e02f95
commit 80909734c2

View file

@ -249,7 +249,7 @@ void RegionMapEditor::buildConfigDialog() {
// and populate it with the current values // and populate it with the current values
// the user can edit and save the config for an existing map this way // the user can edit and save the config for an existing map this way
connect(regionMapList, &QListWidget::itemDoubleClicked, [this, &rmConfigJsonUpdate, updateMapList, regionMapList](QListWidgetItem *item) { connect(regionMapList, &QListWidget::itemDoubleClicked, [this, &rmConfigJsonUpdate, updateMapList, regionMapList](QListWidgetItem *item) {
int itemIndex = regionMapList->indexFromItem(item).row(); int itemIndex = regionMapList->row(item);
QString err; QString err;
poryjson::Json clickedJson = poryjson::Json::parse(item->data(Qt::UserRole).toString(), err); poryjson::Json clickedJson = poryjson::Json::parse(item->data(Qt::UserRole).toString(), err);