Skip to content

Commit

Permalink
more tab to focus fixups and extensions Preferences SpellCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Apr 17, 2024
1 parent cc58599 commit b34efa0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/Dialogs/PreferenceWidgets/SpellCheckWidget.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/************************************************************************
**
** Copyright (C) 2015-2021 Kevin B. Hendricks, Stratford, Ontario, Canada
** Copyright (C) 2015-2024 Kevin B. Hendricks, Stratford, Ontario, Canada
** Copyright (C) 2013 Dave Heiland
** Copyright (C) 2009-2011 Strahinja Markovic <[email protected]>
**
Expand Down Expand Up @@ -45,6 +45,19 @@ SpellCheckWidget::SpellCheckWidget()
setUpTable();
readSettings();
connectSignalsToSlots();
ui.dictionaries->setFocusPolicy(Qt::StrongFocus);
ui.dictionaries2d->setFocusPolicy(Qt::StrongFocus);
ui.HighlightMisspelled->setFocusPolicy(Qt::StrongFocus);
ui.CheckNumbers->setFocusPolicy(Qt::StrongFocus);
ui.spellTabWidget->setFocusPolicy(Qt::StrongFocus);
ui.addUserDict->setFocusPolicy(Qt::StrongFocus);
ui.renameUserDict->setFocusPolicy(Qt::StrongFocus);
ui.copyUserDict->setFocusPolicy(Qt::StrongFocus);
ui.removeUserDict->setFocusPolicy(Qt::StrongFocus);
ui.addUserWords->setFocusPolicy(Qt::StrongFocus);
ui.editWord->setFocusPolicy(Qt::StrongFocus);
ui.removeWord->setFocusPolicy(Qt::StrongFocus);
ui.removeAll->setFocusPolicy(Qt::StrongFocus);
}

void SpellCheckWidget::setUpTable()
Expand All @@ -62,6 +75,7 @@ void SpellCheckWidget::setUpTable()
ui.userDictList->setSelectionBehavior(QAbstractItemView::SelectRows);
ui.userDictList->setSelectionMode(QAbstractItemView::SingleSelection);
ui.userDictList->setAlternatingRowColors(true);
ui.userDictList->setTabKeyNavigation(false);
}

PreferencesWidget::ResultActions SpellCheckWidget::saveSettings()
Expand Down

0 comments on commit b34efa0

Please sign in to comment.