VirtualBox

Changeset 90882 in vbox for trunk/src


Ignore:
Timestamp:
Aug 25, 2021 1:45:57 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. Adding some comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h

    r90872 r90882  
    3636#ifdef VBOX_WITH_QHELP_VIEWER
    3737
     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. */
    3843class UIHelpViewer : public QIWithRetranslateUI<QTextBrowser>
    3944{
     
    123128    void highlightFinds(int iSearchTermLength);
    124129    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. */
    125131    void iterateDocumentImages();
    126132    void scaleFont();
     
    146152    /** As percentage. */
    147153    int m_iZoomPercentage;
     154    /** Used to change th document cursor back from m_handCursor. */
    148155    QCursor m_defaultCursor;
    149156    QCursor m_handCursor;
     157    /** We need this list from th QHelp system to obtain information of images. */
    150158    QList<QUrl> m_helpFileList;
    151159    QPixmap m_overlayPixmap;
     
    154162    QLabel *m_pOverlayLabel;
    155163    QGraphicsBlurEffect *m_pOverlayBlurEffect;
    156 
    157164};
    158165
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette