DolphinQt: setTabKeyNavigation(false) on QTableWidget and QTableView.
This commit is contained in:
parent
a0d204253b
commit
b9f34bc822
|
@ -368,6 +368,9 @@ QWidget* CheatsManager::CreateCheatSearch()
|
||||||
m_match_table = new QTableWidget;
|
m_match_table = new QTableWidget;
|
||||||
m_watch_table = new QTableWidget;
|
m_watch_table = new QTableWidget;
|
||||||
|
|
||||||
|
m_match_table->setTabKeyNavigation(false);
|
||||||
|
m_watch_table->setTabKeyNavigation(false);
|
||||||
|
|
||||||
m_match_table->verticalHeader()->hide();
|
m_match_table->verticalHeader()->hide();
|
||||||
m_watch_table->verticalHeader()->hide();
|
m_watch_table->verticalHeader()->hide();
|
||||||
|
|
||||||
|
|
|
@ -295,6 +295,8 @@ void IOWindow::CreateMainLayout()
|
||||||
|
|
||||||
// Options (Buttons, Outputs) and action buttons
|
// Options (Buttons, Outputs) and action buttons
|
||||||
|
|
||||||
|
m_option_list->setTabKeyNavigation(false);
|
||||||
|
|
||||||
if (m_type == Type::Input)
|
if (m_type == Type::Input)
|
||||||
{
|
{
|
||||||
m_option_list->setColumnCount(2);
|
m_option_list->setColumnCount(2);
|
||||||
|
|
|
@ -41,6 +41,7 @@ VerifyWidget::VerifyWidget(std::shared_ptr<DiscIO::Volume> volume) : m_volume(st
|
||||||
void VerifyWidget::CreateWidgets()
|
void VerifyWidget::CreateWidgets()
|
||||||
{
|
{
|
||||||
m_problems = new QTableWidget(0, 2, this);
|
m_problems = new QTableWidget(0, 2, this);
|
||||||
|
m_problems->setTabKeyNavigation(false);
|
||||||
m_problems->setHorizontalHeaderLabels({tr("Problem"), tr("Severity")});
|
m_problems->setHorizontalHeaderLabels({tr("Problem"), tr("Severity")});
|
||||||
m_problems->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
|
m_problems->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
|
||||||
m_problems->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
|
m_problems->horizontalHeader()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
|
||||||
|
|
|
@ -76,6 +76,7 @@ void BreakpointWidget::CreateWidgets()
|
||||||
m_toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
m_toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||||
|
|
||||||
m_table = new QTableWidget;
|
m_table = new QTableWidget;
|
||||||
|
m_table->setTabKeyNavigation(false);
|
||||||
m_table->setContentsMargins(0, 0, 0, 0);
|
m_table->setContentsMargins(0, 0, 0, 0);
|
||||||
m_table->setColumnCount(5);
|
m_table->setColumnCount(5);
|
||||||
m_table->setSelectionMode(QAbstractItemView::SingleSelection);
|
m_table->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
|
|
|
@ -73,6 +73,7 @@ void JITWidget::CreateWidgets()
|
||||||
{
|
{
|
||||||
m_table_widget = new QTableWidget;
|
m_table_widget = new QTableWidget;
|
||||||
|
|
||||||
|
m_table_widget->setTabKeyNavigation(false);
|
||||||
m_table_widget->setColumnCount(7);
|
m_table_widget->setColumnCount(7);
|
||||||
m_table_widget->setHorizontalHeaderLabels(
|
m_table_widget->setHorizontalHeaderLabels(
|
||||||
{tr("Address"), tr("PPC Size"), tr("Host Size"),
|
{tr("Address"), tr("PPC Size"), tr("Host Size"),
|
||||||
|
|
|
@ -69,6 +69,7 @@ void RegisterWidget::showEvent(QShowEvent* event)
|
||||||
void RegisterWidget::CreateWidgets()
|
void RegisterWidget::CreateWidgets()
|
||||||
{
|
{
|
||||||
m_table = new QTableWidget;
|
m_table = new QTableWidget;
|
||||||
|
m_table->setTabKeyNavigation(false);
|
||||||
|
|
||||||
m_table->setColumnCount(9);
|
m_table->setColumnCount(9);
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,7 @@ void WatchWidget::CreateWidgets()
|
||||||
m_toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
m_toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||||
|
|
||||||
m_table = new QTableWidget;
|
m_table = new QTableWidget;
|
||||||
|
m_table->setTabKeyNavigation(false);
|
||||||
|
|
||||||
m_table->setContentsMargins(0, 0, 0, 0);
|
m_table->setContentsMargins(0, 0, 0, 0);
|
||||||
m_table->setColumnCount(NUM_COLUMNS);
|
m_table->setColumnCount(NUM_COLUMNS);
|
||||||
|
|
|
@ -93,6 +93,7 @@ void GCMemcardManager::CreateWidgets()
|
||||||
m_slot_file_edit[i] = new QLineEdit;
|
m_slot_file_edit[i] = new QLineEdit;
|
||||||
m_slot_file_button[i] = new QPushButton(tr("&Browse..."));
|
m_slot_file_button[i] = new QPushButton(tr("&Browse..."));
|
||||||
m_slot_table[i] = new QTableWidget;
|
m_slot_table[i] = new QTableWidget;
|
||||||
|
m_slot_table[i]->setTabKeyNavigation(false);
|
||||||
m_slot_stat_label[i] = new QLabel;
|
m_slot_stat_label[i] = new QLabel;
|
||||||
|
|
||||||
m_slot_table[i]->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
m_slot_table[i]->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
|
|
|
@ -102,6 +102,7 @@ void GameList::MakeListView()
|
||||||
m_list = new QTableView(this);
|
m_list = new QTableView(this);
|
||||||
m_list->setModel(m_list_proxy);
|
m_list->setModel(m_list_proxy);
|
||||||
|
|
||||||
|
m_list->setTabKeyNavigation(false);
|
||||||
m_list->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
m_list->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
m_list->setSelectionBehavior(QAbstractItemView::SelectRows);
|
m_list->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||||
m_list->setAlternatingRowColors(true);
|
m_list->setAlternatingRowColors(true);
|
||||||
|
|
|
@ -61,6 +61,7 @@ void NetPlayBrowser::CreateWidgets()
|
||||||
auto* layout = new QVBoxLayout;
|
auto* layout = new QVBoxLayout;
|
||||||
|
|
||||||
m_table_widget = new QTableWidget;
|
m_table_widget = new QTableWidget;
|
||||||
|
m_table_widget->setTabKeyNavigation(false);
|
||||||
|
|
||||||
m_table_widget->setSelectionBehavior(QAbstractItemView::SelectRows);
|
m_table_widget->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||||
m_table_widget->setSelectionMode(QAbstractItemView::SingleSelection);
|
m_table_widget->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
|
|
|
@ -231,6 +231,7 @@ void NetPlayDialog::CreatePlayersLayout()
|
||||||
m_kick_button = new QPushButton(tr("Kick Player"));
|
m_kick_button = new QPushButton(tr("Kick Player"));
|
||||||
m_assign_ports_button = new QPushButton(tr("Assign Controller Ports"));
|
m_assign_ports_button = new QPushButton(tr("Assign Controller Ports"));
|
||||||
|
|
||||||
|
m_players_list->setTabKeyNavigation(false);
|
||||||
m_players_list->setColumnCount(5);
|
m_players_list->setColumnCount(5);
|
||||||
m_players_list->verticalHeader()->hide();
|
m_players_list->verticalHeader()->hide();
|
||||||
m_players_list->setSelectionBehavior(QAbstractItemView::SelectRows);
|
m_players_list->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||||
|
|
|
@ -33,6 +33,7 @@ void ResourcePackManager::CreateWidgets()
|
||||||
auto* layout = new QGridLayout;
|
auto* layout = new QGridLayout;
|
||||||
|
|
||||||
m_table_widget = new QTableWidget;
|
m_table_widget = new QTableWidget;
|
||||||
|
m_table_widget->setTabKeyNavigation(false);
|
||||||
|
|
||||||
m_open_directory_button = new QPushButton(tr("Open Directory..."));
|
m_open_directory_button = new QPushButton(tr("Open Directory..."));
|
||||||
m_change_button = new QPushButton(tr("Install"));
|
m_change_button = new QPushButton(tr("Install"));
|
||||||
|
|
Loading…
Reference in New Issue