-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebEngine-specific: look for QQuickWidget child of QWebEngineView
When the user hovers the mouse pointer over the collapse-article icon while the article is expanded or over the article name while it is collapsed, a "(Collapse|Expand) article" tooltip is displayed. This tooltip creates a temporary QTipLabel child of ArticleWebView. QTipLabel is a private Qt class derived from QLabel. This transitory widget child of ArticleWebView replaces the RenderWidgetHostViewQtDelegateWidget child in the childWidget pointer. Afterwards ArticleWebView's cursor member functions do not update RenderWidgetHostViewQtDelegateWidget's cursor and thus the cursor no longer changes shape to a wait cursor when an article starts loading. Don't look for RenderWidgetHostViewQtDelegateWidget directly, because 5d1ef38f9f6815807596d0606cf7ed06b7930aac replaced this class with WebEngineQuickWidget in Qt WebEngine 6.4. Both the old class and its replacement inherit QQuickWidget. Since GoldenDict does not use Qt Quick directly, I don't expect any more wrong childWidget values with this implementation. quickwidgets Qt module dependency has to be added to the Qt WebEngine version of GoldenDict to use qobject_cast< QQuickWidget * >. This should not cause any issues to end users, because webenginewidgets module itself privately depends on quickwidgets.
- Loading branch information
Showing
3 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters