- Timestamp:
- Aug 25, 2021 1:45:57 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h
r90872 r90882 36 36 #ifdef VBOX_WITH_QHELP_VIEWER 37 37 38 /** A QTextBrowser extension used as poor man's html viewer. Since we were not happy with the quality of QTextBrowser's image 39 * rendering and didn't want to use WebKit module, this extension redraws the document images as overlays with improved QPainter 40 * parameters. There is also a small hack to render clicked image 1:1 (and the rest of the document blurred) 41 * for a zoom-in-image functionality. This extension can also scale the images while scaling the document. In contrast 42 * QTextBrowser scales only fonts. */ 38 43 class UIHelpViewer : public QIWithRetranslateUI<QTextBrowser> 39 44 { … … 123 128 void highlightFinds(int iSearchTermLength); 124 129 void selectMatch(int iMatchIndex, int iSearchStringLength); 130 /** Scans the document and finds all the images, whose pixmap data is retrieved from QHelp system to be used in overlay draw. */ 125 131 void iterateDocumentImages(); 126 132 void scaleFont(); … … 146 152 /** As percentage. */ 147 153 int m_iZoomPercentage; 154 /** Used to change th document cursor back from m_handCursor. */ 148 155 QCursor m_defaultCursor; 149 156 QCursor m_handCursor; 157 /** We need this list from th QHelp system to obtain information of images. */ 150 158 QList<QUrl> m_helpFileList; 151 159 QPixmap m_overlayPixmap; … … 154 162 QLabel *m_pOverlayLabel; 155 163 QGraphicsBlurEffect *m_pOverlayBlurEffect; 156 157 164 }; 158 165
Note:
See TracChangeset
for help on using the changeset viewer.