Qt: Support Qt 6

This commit is contained in:
Connor McLaughlin
2021-05-20 14:03:55 +10:00
parent 245dd5b27a
commit 6c20bac7dd
10 changed files with 96 additions and 20 deletions

View File

@ -756,7 +756,7 @@ std::optional<unsigned> PromptForAddress(QWidget* parent, const QString& title,
bool ok;
uint address;
if (address_str.startsWith("0x"))
address = address_str.midRef(2).toUInt(&ok, 16);
address = address_str.mid(2).toUInt(&ok, 16);
else
address = address_str.toUInt(&ok, 16);
if (code)