From b9f34bc822d3abdbbcfd06c64d6554589b9a770c Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Thu, 6 Feb 2020 20:34:27 -0600 Subject: [PATCH] DolphinQt: setTabKeyNavigation(false) on QTableWidget and QTableView. --- Source/Core/DolphinQt/CheatsManager.cpp | 3 +++ Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp | 2 ++ Source/Core/DolphinQt/Config/VerifyWidget.cpp | 1 + Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp | 1 + Source/Core/DolphinQt/Debugger/JITWidget.cpp | 1 + Source/Core/DolphinQt/Debugger/RegisterWidget.cpp | 1 + Source/Core/DolphinQt/Debugger/WatchWidget.cpp | 1 + Source/Core/DolphinQt/GCMemcardManager.cpp | 1 + Source/Core/DolphinQt/GameList/GameList.cpp | 1 + Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp | 1 + Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp | 1 + Source/Core/DolphinQt/ResourcePackManager.cpp | 1 + 12 files changed, 15 insertions(+) diff --git a/Source/Core/DolphinQt/CheatsManager.cpp b/Source/Core/DolphinQt/CheatsManager.cpp index efd7c5eace..649fa1e685 100644 --- a/Source/Core/DolphinQt/CheatsManager.cpp +++ b/Source/Core/DolphinQt/CheatsManager.cpp @@ -368,6 +368,9 @@ QWidget* CheatsManager::CreateCheatSearch() m_match_table = new QTableWidget; m_watch_table = new QTableWidget; + m_match_table->setTabKeyNavigation(false); + m_watch_table->setTabKeyNavigation(false); + m_match_table->verticalHeader()->hide(); m_watch_table->verticalHeader()->hide(); diff --git a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp index 6a707587f6..b4dd1aa54a 100644 --- a/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp @@ -295,6 +295,8 @@ void IOWindow::CreateMainLayout() // Options (Buttons, Outputs) and action buttons + m_option_list->setTabKeyNavigation(false); + if (m_type == Type::Input) { m_option_list->setColumnCount(2); diff --git a/Source/Core/DolphinQt/Config/VerifyWidget.cpp b/Source/Core/DolphinQt/Config/VerifyWidget.cpp index ac10f912fa..925409a81c 100644 --- a/Source/Core/DolphinQt/Config/VerifyWidget.cpp +++ b/Source/Core/DolphinQt/Config/VerifyWidget.cpp @@ -41,6 +41,7 @@ VerifyWidget::VerifyWidget(std::shared_ptr volume) : m_volume(st void VerifyWidget::CreateWidgets() { m_problems = new QTableWidget(0, 2, this); + m_problems->setTabKeyNavigation(false); m_problems->setHorizontalHeaderLabels({tr("Problem"), tr("Severity")}); m_problems->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch); m_problems->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents); diff --git a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp index 4f6c5966ab..2166d43244 100644 --- a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp @@ -76,6 +76,7 @@ void BreakpointWidget::CreateWidgets() m_toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); m_table = new QTableWidget; + m_table->setTabKeyNavigation(false); m_table->setContentsMargins(0, 0, 0, 0); m_table->setColumnCount(5); m_table->setSelectionMode(QAbstractItemView::SingleSelection); diff --git a/Source/Core/DolphinQt/Debugger/JITWidget.cpp b/Source/Core/DolphinQt/Debugger/JITWidget.cpp index 8d93d3a9d5..a10ad34c0b 100644 --- a/Source/Core/DolphinQt/Debugger/JITWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/JITWidget.cpp @@ -73,6 +73,7 @@ void JITWidget::CreateWidgets() { m_table_widget = new QTableWidget; + m_table_widget->setTabKeyNavigation(false); m_table_widget->setColumnCount(7); m_table_widget->setHorizontalHeaderLabels( {tr("Address"), tr("PPC Size"), tr("Host Size"), diff --git a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp index 182244969a..3abfd73076 100644 --- a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp @@ -69,6 +69,7 @@ void RegisterWidget::showEvent(QShowEvent* event) void RegisterWidget::CreateWidgets() { m_table = new QTableWidget; + m_table->setTabKeyNavigation(false); m_table->setColumnCount(9); diff --git a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp index 3a19ed26a4..a53f7b7ecc 100644 --- a/Source/Core/DolphinQt/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/WatchWidget.cpp @@ -73,6 +73,7 @@ void WatchWidget::CreateWidgets() m_toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); m_table = new QTableWidget; + m_table->setTabKeyNavigation(false); m_table->setContentsMargins(0, 0, 0, 0); m_table->setColumnCount(NUM_COLUMNS); diff --git a/Source/Core/DolphinQt/GCMemcardManager.cpp b/Source/Core/DolphinQt/GCMemcardManager.cpp index fb1b0af4b6..395eb553c6 100644 --- a/Source/Core/DolphinQt/GCMemcardManager.cpp +++ b/Source/Core/DolphinQt/GCMemcardManager.cpp @@ -93,6 +93,7 @@ void GCMemcardManager::CreateWidgets() m_slot_file_edit[i] = new QLineEdit; m_slot_file_button[i] = new QPushButton(tr("&Browse...")); m_slot_table[i] = new QTableWidget; + m_slot_table[i]->setTabKeyNavigation(false); m_slot_stat_label[i] = new QLabel; m_slot_table[i]->setSelectionMode(QAbstractItemView::ExtendedSelection); diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index a9f8d8e470..c93696755f 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -102,6 +102,7 @@ void GameList::MakeListView() m_list = new QTableView(this); m_list->setModel(m_list_proxy); + m_list->setTabKeyNavigation(false); m_list->setSelectionMode(QAbstractItemView::ExtendedSelection); m_list->setSelectionBehavior(QAbstractItemView::SelectRows); m_list->setAlternatingRowColors(true); diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp index f469254693..0bb6b05714 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlayBrowser.cpp @@ -61,6 +61,7 @@ void NetPlayBrowser::CreateWidgets() auto* layout = new QVBoxLayout; m_table_widget = new QTableWidget; + m_table_widget->setTabKeyNavigation(false); m_table_widget->setSelectionBehavior(QAbstractItemView::SelectRows); m_table_widget->setSelectionMode(QAbstractItemView::SingleSelection); diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp index 78fed17e2a..31abe2f384 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp @@ -231,6 +231,7 @@ void NetPlayDialog::CreatePlayersLayout() m_kick_button = new QPushButton(tr("Kick Player")); m_assign_ports_button = new QPushButton(tr("Assign Controller Ports")); + m_players_list->setTabKeyNavigation(false); m_players_list->setColumnCount(5); m_players_list->verticalHeader()->hide(); m_players_list->setSelectionBehavior(QAbstractItemView::SelectRows); diff --git a/Source/Core/DolphinQt/ResourcePackManager.cpp b/Source/Core/DolphinQt/ResourcePackManager.cpp index 55fdda3aa8..bb908b0053 100644 --- a/Source/Core/DolphinQt/ResourcePackManager.cpp +++ b/Source/Core/DolphinQt/ResourcePackManager.cpp @@ -33,6 +33,7 @@ void ResourcePackManager::CreateWidgets() auto* layout = new QGridLayout; m_table_widget = new QTableWidget; + m_table_widget->setTabKeyNavigation(false); m_open_directory_button = new QPushButton(tr("Open Directory...")); m_change_button = new QPushButton(tr("Install"));