Skip to content
Permalink
Browse files
Merge pull request #8606 from jordan-woyak/tab-key-navigation
DolphinQt: setTabKeyNavigation(false) on QTableWidget and QTableView.
  • Loading branch information
JMC47 committed Feb 8, 2020
2 parents 3b0b264 + b9f34bc commit 6a857df
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 0 deletions.
@@ -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();

@@ -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);
@@ -41,6 +41,7 @@ VerifyWidget::VerifyWidget(std::shared_ptr<DiscIO::Volume> 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);
@@ -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);
@@ -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"),
@@ -69,6 +69,7 @@ void RegisterWidget::showEvent(QShowEvent* event)
void RegisterWidget::CreateWidgets()
{
m_table = new QTableWidget;
m_table->setTabKeyNavigation(false);

m_table->setColumnCount(9);

@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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"));

0 comments on commit 6a857df

Please sign in to comment.