Fix issues with PopupHelpWidget on Linux and macOS

* Clean up parent alignment code
* Don't hide widget if it currently has focus
* Use Qt::Tool window type on macOS as well. This prevents the popup help from hiding to the background if the main window has focus.
* Fixes #2814
This commit is contained in:
Jonathan White 2020-01-25 09:22:13 -05:00
parent e26063a872
commit 50e52df04b
4 changed files with 18 additions and 84 deletions

View file

@ -38,7 +38,6 @@ SearchWidget::SearchWidget(QWidget* parent)
setFocusProxy(m_ui->searchEdit);
m_helpWidget = new PopupHelpWidget(m_ui->searchEdit);
m_helpWidget->setOffset(QPoint(0, 1));
Ui::SearchHelpWidget helpUi;
helpUi.setupUi(m_helpWidget);