mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
qt: Remove emit
This commit is contained in:
parent
d86858da64
commit
dd553331df
6 changed files with 22 additions and 22 deletions
|
@ -198,16 +198,16 @@ game_list_frame::game_list_frame(std::shared_ptr<gui_settings> settings, Render_
|
|||
connect(m_xgrid, &QTableWidget::doubleClicked, this, &game_list_frame::doubleClickedSlot);
|
||||
connect(m_xgrid, &QTableWidget::customContextMenuRequested, this, &game_list_frame::ShowContextMenu);
|
||||
|
||||
connect(m_Slider_Size, &QSlider::valueChanged, [=](int value) { emit RequestIconSizeActSet(value); });
|
||||
connect(m_Slider_Size, &QSlider::valueChanged, [=](int value) { RequestIconSizeActSet(value); });
|
||||
|
||||
connect(m_modeActs, &QActionGroup::triggered, [=](QAction* act) {
|
||||
emit RequestListModeActSet(act == m_modeActList.action);
|
||||
RequestListModeActSet(act == m_modeActList.action);
|
||||
m_modeActList.action->setIcon(m_isListLayout ? m_modeActList.colored : m_modeActList.gray);
|
||||
m_modeActGrid.action->setIcon(m_isListLayout ? m_modeActGrid.gray : m_modeActGrid.colored);
|
||||
});
|
||||
|
||||
connect(m_categoryActs, &QActionGroup::triggered, [=](QAction* act) {
|
||||
emit RequestCategoryActSet(m_categoryActs->actions().indexOf(act));
|
||||
RequestCategoryActSet(m_categoryActs->actions().indexOf(act));
|
||||
});
|
||||
|
||||
for (int col = 0; col < columnActs.count(); ++col)
|
||||
|
@ -504,7 +504,7 @@ void game_list_frame::doubleClickedSlot(const QModelIndex& index)
|
|||
if (category == category::hdd_Game || category == category::disc_Game || category == category::audio_Video)
|
||||
{
|
||||
const std::string& path = Emu.GetGameDir() + m_game_data[i].info.root;
|
||||
emit RequestIconPathSet(path);
|
||||
RequestIconPathSet(path);
|
||||
|
||||
Emu.Stop();
|
||||
|
||||
|
@ -515,7 +515,7 @@ void game_list_frame::doubleClickedSlot(const QModelIndex& index)
|
|||
else
|
||||
{
|
||||
LOG_SUCCESS(LOADER, "Boot from gamelist per doubleclick: done");
|
||||
emit RequestAddRecentGame(q_string_pair(qstr(path), qstr("[" + m_game_data[i].info.serial + "] " + m_game_data[i].info.name)));
|
||||
RequestAddRecentGame(q_string_pair(qstr(path), qstr("[" + m_game_data[i].info.serial + "] " + m_game_data[i].info.name)));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -632,7 +632,7 @@ void game_list_frame::ShowSpecifiedContextMenu(const QPoint &pos, int row)
|
|||
void game_list_frame::Boot(int row)
|
||||
{
|
||||
const std::string& path = Emu.GetGameDir() + m_game_data[row].info.root;
|
||||
emit RequestIconPathSet(path);
|
||||
RequestIconPathSet(path);
|
||||
|
||||
Emu.Stop();
|
||||
|
||||
|
@ -644,7 +644,7 @@ void game_list_frame::Boot(int row)
|
|||
else
|
||||
{
|
||||
LOG_SUCCESS(LOADER, "Boot from gamelist per Boot: done");
|
||||
emit RequestAddRecentGame(q_string_pair(qstr(path), qstr("[" + m_game_data[row].info.serial + "] " + m_game_data[row].info.name)));
|
||||
RequestAddRecentGame(q_string_pair(qstr(path), qstr("[" + m_game_data[row].info.serial + "] " + m_game_data[row].info.name)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -722,7 +722,7 @@ void game_list_frame::SetCategoryActIcon(const int& id, const bool& active)
|
|||
void game_list_frame::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
QDockWidget::closeEvent(event);
|
||||
emit game_list_frameClosed();
|
||||
game_list_frameClosed();
|
||||
}
|
||||
|
||||
void game_list_frame::resizeEvent(QResizeEvent *event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue