qt: Fix qt6 compile

This commit is contained in:
cold-brewed
2022-10-25 12:51:41 -04:00
parent a71cef75b3
commit 953a430d44

View File

@@ -491,7 +491,7 @@ void MediaMenu::updateImageHistory(int index, int slot, ui::MediaType type) {
menu = cdromMenus[index]; menu = cdromMenus[index];
children = menu->children(); children = menu->children();
imageHistoryUpdatePos = dynamic_cast<QAction*>(children[cdromImageHistoryPos[slot]]); imageHistoryUpdatePos = dynamic_cast<QAction*>(children[cdromImageHistoryPos[slot]]);
fi = mhm.getImageForSlot(index, slot, type); fi.setFile(mhm.getImageForSlot(index, slot, type));
menu_icon = fi.isDir() ? QApplication::style()->standardIcon(QStyle::SP_DirIcon) : ProgSettings::loadIcon("/cdrom.ico"); menu_icon = fi.isDir() ? QApplication::style()->standardIcon(QStyle::SP_DirIcon) : ProgSettings::loadIcon("/cdrom.ico");
imageHistoryUpdatePos->setIcon(menu_icon); imageHistoryUpdatePos->setIcon(menu_icon);
break; break;
@@ -501,7 +501,7 @@ void MediaMenu::updateImageHistory(int index, int slot, ui::MediaType type) {
menu = floppyMenus[index]; menu = floppyMenus[index];
children = menu->children(); children = menu->children();
imageHistoryUpdatePos = dynamic_cast<QAction*>(children[floppyImageHistoryPos[slot]]); imageHistoryUpdatePos = dynamic_cast<QAction*>(children[floppyImageHistoryPos[slot]]);
fi = mhm.getImageForSlot(index, slot, type); fi.setFile(mhm.getImageForSlot(index, slot, type));
break; break;
default: default:
pclog("History not yet implemented for media type %s\n", qPrintable(mhm.mediaTypeToString(type))); pclog("History not yet implemented for media type %s\n", qPrintable(mhm.mediaTypeToString(type)));