mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
DolphinQt: resolve Qt5.15 deprecations
This commit is contained in:
@ -186,9 +186,9 @@ void InterfacePane::ConnectLayout()
|
||||
connect(m_checkbox_use_covers, &QCheckBox::toggled, this, &InterfacePane::OnSaveConfig);
|
||||
connect(m_checkbox_show_debugging_ui, &QCheckBox::toggled, this, &InterfacePane::OnSaveConfig);
|
||||
connect(m_checkbox_focused_hotkeys, &QCheckBox::toggled, this, &InterfacePane::OnSaveConfig);
|
||||
connect(m_combobox_theme, qOverload<const QString&>(&QComboBox::currentIndexChanged),
|
||||
&Settings::Instance(), &Settings::SetThemeName);
|
||||
connect(m_combobox_userstyle, qOverload<const QString&>(&QComboBox::currentIndexChanged), this,
|
||||
connect(m_combobox_theme, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
[=](int index) { Settings::Instance().SetThemeName(m_combobox_theme->itemText(index)); });
|
||||
connect(m_combobox_userstyle, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&InterfacePane::OnSaveConfig);
|
||||
connect(m_combobox_language, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||
&InterfacePane::OnSaveConfig);
|
||||
|
@ -168,10 +168,9 @@ void USBDeviceAddToWhitelistDialog::OnDeviceSelection()
|
||||
{
|
||||
// Not the nicest way of doing this but...
|
||||
QString device = usb_inserted_devices_list->currentItem()->text().left(9);
|
||||
QString* vid = new QString(
|
||||
device.split(QString::fromStdString(":"), QString::SplitBehavior::KeepEmptyParts)[0]);
|
||||
QString* pid = new QString(
|
||||
device.split(QString::fromStdString(":"), QString::SplitBehavior::KeepEmptyParts)[1]);
|
||||
QStringList split = device.split(QString::fromStdString(":"));
|
||||
QString* vid = new QString(split[0]);
|
||||
QString* pid = new QString(split[1]);
|
||||
device_vid_textbox->setText(*vid);
|
||||
device_pid_textbox->setText(*pid);
|
||||
}
|
||||
|
@ -279,10 +279,9 @@ void WiiPane::OnUSBWhitelistAddButton()
|
||||
void WiiPane::OnUSBWhitelistRemoveButton()
|
||||
{
|
||||
QString device = m_whitelist_usb_list->currentItem()->text().left(9);
|
||||
QString vid =
|
||||
QString(device.split(QString::fromStdString(":"), QString::SplitBehavior::KeepEmptyParts)[0]);
|
||||
QString pid =
|
||||
QString(device.split(QString::fromStdString(":"), QString::SplitBehavior::KeepEmptyParts)[1]);
|
||||
QStringList split = device.split(QString::fromStdString(":"));
|
||||
QString vid = QString(split[0]);
|
||||
QString pid = QString(split[1]);
|
||||
const u16 vid_u16 = static_cast<u16>(std::stoul(vid.toStdString(), nullptr, 16));
|
||||
const u16 pid_u16 = static_cast<u16>(std::stoul(pid.toStdString(), nullptr, 16));
|
||||
SConfig::GetInstance().m_usb_passthrough_devices.erase({vid_u16, pid_u16});
|
||||
|
Reference in New Issue
Block a user