From f8bbdc39c55f41d7b5b82b7aaf2d1b2a492a1b7e Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 20 May 2018 02:14:06 +0200 Subject: [PATCH] Qt: Change Trophy Manager to use item selection instead of double click --- rpcs3/rpcs3qt/trophy_manager_dialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/trophy_manager_dialog.cpp b/rpcs3/rpcs3qt/trophy_manager_dialog.cpp index acc3ac3a5e..ce5b4dfa32 100644 --- a/rpcs3/rpcs3qt/trophy_manager_dialog.cpp +++ b/rpcs3/rpcs3qt/trophy_manager_dialog.cpp @@ -72,6 +72,7 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr gui_s m_game_table->horizontalScrollBar()->setSingleStep(20); m_game_table->setItemDelegate(new table_item_delegate(this)); m_game_table->setSelectionBehavior(QAbstractItemView::SelectRows); + m_game_table->setSelectionMode(QAbstractItemView::SingleSelection); m_game_table->setEditTriggers(QAbstractItemView::NoEditTriggers); m_game_table->setColumnCount(GameColumns::GameColumnsCount); m_game_table->setHorizontalHeaderLabels(QStringList{ tr("Icon"), tr("Game"), tr("Progress") }); @@ -390,7 +391,7 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr gui_s ApplyFilter(); }); - connect(m_game_table, &QTableWidget::doubleClicked, [this] + connect(m_game_table, &QTableWidget::itemSelectionChanged, [this] { m_game_combo->setCurrentText(m_game_table->item(m_game_table->currentRow(), GameColumns::GameName)->text()); });