VirtualBox

Changeset 87211 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 11, 2021 12:44:28 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9831. A small margin fix

Location:
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser
Files:
2 edited

Legend:

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

    r87208 r87211  
    391391    /* Closing the find in page widget causes QTextBrowser to jump to the top of the document. This hack puts it back into position: */
    392392    int iPosition = verticalScrollBar()->value();
     393    m_iMarginForFindWidget = verticalScrollBar()->width() +
     394        qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin);
    393395    /* Try to position the widget somewhere meaningful initially: */
    394396    if (!m_fFindWidgetDragged)
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpViewer.h

    r87208 r87211  
    5858
    5959public slots:
     60
    6061    void sltToggleFindInPageWidget(bool fVisible);
    6162
     
    8889    /* Initilized as false and set to true once the user drag moves the find widget. */
    8990    bool m_fFindWidgetDragged;
    90     const int m_iMarginForFindWidget;
     91    int m_iMarginForFindWidget;
    9192    /** Document positions of the cursors within the document for all matches. */
    9293    QVector<int>   m_matchedCursorPosition;
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