mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Silence deprecation warning (implicit capture of this on [=])
This commit is contained in:
parent
1bc9fd2863
commit
4bc431ec31
31 changed files with 249 additions and 247 deletions
|
|
@ -568,7 +568,7 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
setLayout(main_layout);
|
||||
|
||||
// Edit/Manage UI
|
||||
connect(tbl_cheats, &QTableWidget::itemClicked, [=](QTableWidgetItem* item)
|
||||
connect(tbl_cheats, &QTableWidget::itemClicked, [this](QTableWidgetItem* item)
|
||||
{
|
||||
if (!item)
|
||||
return;
|
||||
|
|
@ -636,7 +636,7 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
}
|
||||
});
|
||||
|
||||
connect(tbl_cheats, &QTableWidget::cellChanged, [=](int row, int column)
|
||||
connect(tbl_cheats, &QTableWidget::cellChanged, [this](int row, int column)
|
||||
{
|
||||
if (column != 1 && column != 4)
|
||||
{
|
||||
|
|
@ -661,7 +661,7 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
g_cheat.save();
|
||||
});
|
||||
|
||||
connect(tbl_cheats, &QTableWidget::customContextMenuRequested, [=](const QPoint& loc)
|
||||
connect(tbl_cheats, &QTableWidget::customContextMenuRequested, [this](const QPoint& loc)
|
||||
{
|
||||
QPoint globalPos = tbl_cheats->mapToGlobal(loc);
|
||||
QMenu* menu = new QMenu();
|
||||
|
|
@ -670,7 +670,7 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
QAction* export_cheats = new QAction(tr("Export Cheats"));
|
||||
QAction* reverse_cheat = new QAction(tr("Reverse-Lookup Cheat"));
|
||||
|
||||
connect(delete_cheats, &QAction::triggered, [=]()
|
||||
connect(delete_cheats, &QAction::triggered, [this]()
|
||||
{
|
||||
const auto selected = tbl_cheats->selectedItems();
|
||||
|
||||
|
|
@ -690,14 +690,14 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
update_cheat_list();
|
||||
});
|
||||
|
||||
connect(import_cheats, &QAction::triggered, [=]()
|
||||
connect(import_cheats, &QAction::triggered, [this]()
|
||||
{
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
g_cheat.import_cheats_from_str(clipboard->text().toStdString());
|
||||
update_cheat_list();
|
||||
});
|
||||
|
||||
connect(export_cheats, &QAction::triggered, [=]()
|
||||
connect(export_cheats, &QAction::triggered, [this]()
|
||||
{
|
||||
const auto selected = tbl_cheats->selectedItems();
|
||||
|
||||
|
|
@ -722,7 +722,7 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
clipboard->setText(QString::fromStdString(export_string));
|
||||
});
|
||||
|
||||
connect(reverse_cheat, &QAction::triggered, [=]()
|
||||
connect(reverse_cheat, &QAction::triggered, [this]()
|
||||
{
|
||||
QTableWidgetItem* item = tbl_cheats->item(tbl_cheats->currentRow(), 3);
|
||||
if (item)
|
||||
|
|
@ -743,7 +743,7 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
menu->exec(globalPos);
|
||||
});
|
||||
|
||||
connect(btn_apply, &QPushButton::clicked, [=](bool /*checked*/)
|
||||
connect(btn_apply, &QPushButton::clicked, [this](bool /*checked*/)
|
||||
{
|
||||
const int row = tbl_cheats->currentRow();
|
||||
cheat_info* cheat = g_cheat.get(tbl_cheats->item(row, 0)->text().toStdString(), tbl_cheats->item(row, 3)->data(Qt::UserRole).toUInt());
|
||||
|
|
@ -799,15 +799,15 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
});
|
||||
|
||||
// Search UI
|
||||
connect(btn_new_search, &QPushButton::clicked, [=](bool /*checked*/)
|
||||
connect(btn_new_search, &QPushButton::clicked, [this](bool /*checked*/)
|
||||
{
|
||||
offsets_found.clear();
|
||||
do_the_search();
|
||||
});
|
||||
|
||||
connect(btn_filter_results, &QPushButton::clicked, [=](bool /*checked*/) { do_the_search(); });
|
||||
connect(btn_filter_results, &QPushButton::clicked, [=, this](bool /*checked*/) { do_the_search(); });
|
||||
|
||||
connect(lst_search, &QListWidget::customContextMenuRequested, [=](const QPoint& loc)
|
||||
connect(lst_search, &QListWidget::customContextMenuRequested, [=, this](const QPoint& loc)
|
||||
{
|
||||
QPoint globalPos = lst_search->mapToGlobal(loc);
|
||||
QListWidgetItem* item = lst_search->item(lst_search->currentRow());
|
||||
|
|
@ -822,7 +822,7 @@ cheat_manager_dialog::cheat_manager_dialog(QWidget* parent)
|
|||
const cheat_type type = static_cast<cheat_type>(cbx_cheat_search_type->currentIndex());
|
||||
const std::string name = Emu.GetTitle();
|
||||
|
||||
connect(add_to_cheat_list, &QAction::triggered, [=]()
|
||||
connect(add_to_cheat_list, &QAction::triggered, [=, this]()
|
||||
{
|
||||
if (g_cheat.exist(name, offset))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue