DolphinQt: setTabKeyNavigation(false) on QTableWidget and QTableView.

This commit is contained in:
Jordan Woyak 2020-02-06 20:34:27 -06:00
parent a0d204253b
commit b9f34bc822
12 changed files with 15 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -69,6 +69,7 @@ void RegisterWidget::showEvent(QShowEvent* event)
void RegisterWidget::CreateWidgets()
{
m_table = new QTableWidget;
m_table->setTabKeyNavigation(false);
m_table->setColumnCount(9);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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