Changeset 86797 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 3, 2020 1:26:45 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r86794 r86797 31 31 #endif 32 32 #include <QMenu> 33 #include <QMouseEvent> 33 34 #include <QScrollBar> 34 35 #include <QSpacerItem> … … 598 599 599 600 AssertReturnVoid(m_pContentWidget && m_pIndexWidget && m_pContentModel); 601 m_pContentWidget->installEventFilter(this); 600 602 m_pSplitter->addWidget(m_pTabWidget); 601 603 … … 769 771 } 770 772 773 bool UIHelpBrowserWidget::eventFilter(QObject *pWatched, QEvent *pEvent) 774 { 775 if (pWatched == m_pContentWidget) 776 { 777 if (pEvent->type() == QEvent::MouseButtonPress || 778 pEvent->type() == QEvent::MouseMove || 779 pEvent->type() == QEvent::KeyPress || 780 pEvent->type() == QEvent::MouseButtonDblClick) 781 printf("xxxxxxxxxxx %d\n", pEvent->type()); 782 else 783 printf("%d\n", pEvent->type()); 784 785 } 786 return false; 787 } 788 771 789 void UIHelpBrowserWidget::cleanup() 772 790 { -
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.h
r86794 r86797 107 107 void cleanup(); 108 108 QUrl findIndexHtml() const; 109 bool eventFilter(QObject *pWatched, QEvent *pEvent); 110 109 111 /** @name Event handling stuff. 110 112 * @{ */
Note:
See TracChangeset
for help on using the changeset viewer.