Skip to content

Commit

Permalink
Merge branch 'edbee:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 authored Dec 20, 2024
2 parents 46086e0 + 066d551 commit ce017ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

edbee.lib:

- Autocomplete changes, setFocusPolicy on QMenu an adding `setAttribute(Qt::WA_ShowWithoutActivating)`
- PR #147, Add ctrl-a / ctrl-e support for macOS
- fix, Autocomplete Improvements
- autocomplete is now really canceled with the escape key. It only appears again if the word becomes blank
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,18 @@ TextEditorAutoCompleteComponent::TextEditorAutoCompleteComponent(TextEditorContr
layout->setContentsMargins(0, 0, 0, 0);

this->setFocusPolicy(Qt::NoFocus);
this->setAttribute(Qt::WA_ShowWithoutActivating);

menuRef_ = new QMenu(this);
menuRef_->setFocusPolicy(Qt::NoFocus);
menuRef_->setAttribute(Qt::WA_ShowWithoutActivating);

listWidgetRef_ = new QListWidget(menuRef_);
listWidgetRef_->setFocusPolicy(Qt::NoFocus);
listWidgetRef_->setAttribute(Qt::WA_ShowWithoutActivating);

listWidgetRef_->installEventFilter(this);

menuRef_->installEventFilter(this);
menuRef_->setStyleSheet("QMenu { border: 1px solid black; }");
listWidgetRef_->setObjectName("listWidgetRef");
Expand Down

0 comments on commit ce017ad

Please sign in to comment.