VirtualBox

Ignore:
Timestamp:
Oct 18, 2019 2:07:02 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134069
Message:

FE/Qt: QIManagerDialog: Fix bug and coding-style of r119699.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp

    r81284 r81356  
    5656
    5757QIManagerDialog::QIManagerDialog(QWidget *pCenterWidget)
    58     : pCenterWidget(pCenterWidget)
     58    : m_pCenterWidget(pCenterWidget)
    5959    , m_fCloseEmitted(false)
    6060    , m_pWidget(0)
     
    7474    /* Invent initial size: */
    7575    QSize proposedSize;
    76     const int iHostScreen = gpDesktop->screenNumber(pCenterWidget);
     76    const int iHostScreen = gpDesktop->screenNumber(m_pCenterWidget);
    7777    if (iHostScreen >= 0 && iHostScreen < gpDesktop->screenCount())
    7878    {
     
    104104
    105105    /* Center according requested widget: */
    106     UICommon::centerWidget(this, pCenterWidget, false);
     106    UICommon::centerWidget(this, m_pCenterWidget, false);
    107107
    108108    /* Load the dialog's settings from extradata */
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.h

    r81284 r81356  
    165165        /** Returns button of passed @a enmType. */
    166166        QPushButton *button(ButtonType enmType) { return m_buttons.value(enmType); }
    167         /** Returns center widget. */
    168         QWidget* centerWidget() const { return pCenterWidget; }
     167        /** Returns the widget reference to center manager dialog according. */
     168        QWidget *centerWidget() const { return m_pCenterWidget; }
    169169    /** @} */
    170170
     
    179179    /** @name General stuff.
    180180      * @{ */
    181         /** Holds the widget reference to center Host Network Manager according. */
    182         QWidget *pCenterWidget;
     181        /** Holds the widget reference to center manager dialog according. */
     182        QWidget *m_pCenterWidget;
    183183
    184184        /** Holds whether the manager had emitted command to be closed. */
Note: See TracChangeset for help on using the changeset viewer.

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