VirtualBox

Changeset 107263 in vbox


Ignore:
Timestamp:
Dec 9, 2024 4:05:53 PM (6 weeks ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10814: VBox Manager: Make sure Chooser related connections placed insisde Chooser code.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r106061 r107263  
    830830
    831831    /* Chooser-pane connections: */
    832     connect(this, &UIVirtualBoxManagerWidget::sigToolBarHeightChange,
    833             m_pPaneChooser, &UIChooser::setGlobalItemHeightHint);
    834832    connect(m_pPaneChooser, &UIChooser::sigSelectionChanged,
    835833            this, &UIVirtualBoxManagerWidget::sltHandleChooserPaneIndexChange);
     
    10871085
    10881086    /* Chooser-pane connections: */
    1089     disconnect(this, &UIVirtualBoxManagerWidget::sigToolBarHeightChange,
    1090                m_pPaneChooser, &UIChooser::setGlobalItemHeightHint);
    10911087    disconnect(m_pPaneChooser, &UIChooser::sigSelectionChanged,
    10921088               this, &UIVirtualBoxManagerWidget::sltHandleChooserPaneIndexChange);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp

    r106061 r107263  
    3333#include "UIChooserModel.h"
    3434#include "UIChooserView.h"
     35#include "UIVirtualBoxManagerWidget.h"
    3536#include "UIVirtualMachineItem.h"
    3637
    3738
    38 UIChooser::UIChooser(QWidget *pParent, UIActionPool *pActionPool)
     39UIChooser::UIChooser(UIVirtualBoxManagerWidget *pParent, UIActionPool *pActionPool)
    3940    : QWidget(pParent)
     41    , m_pParent(pParent)
    4042    , m_pActionPool(pActionPool)
    4143    , m_pChooserModel(0)
     
    277279    AssertPtrReturnVoid(model());
    278280    AssertPtrReturnVoid(view());
     281
     282    /* Parent connections: */
     283    connect(m_pParent, &UIVirtualBoxManagerWidget::sigToolBarHeightChange,
     284            this, &UIChooser::setGlobalItemHeightHint);
    279285
    280286    /* Abstract Chooser-model connections: */
     
    359365    disconnect(view(), &UIChooserView::sigSearchWidgetVisibilityChanged,
    360366               this, &UIChooser::sigMachineSearchWidgetVisibilityChanged);
     367
     368    /* Parent connections: */
     369    disconnect(m_pParent, &UIVirtualBoxManagerWidget::sigToolBarHeightChange,
     370               this, &UIChooser::setGlobalItemHeightHint);
    361371}
    362372
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h

    r106061 r107263  
    4343class UIChooserView;
    4444class UIVirtualMachineItem;
     45class UIVirtualBoxManagerWidget;
    4546class UIVirtualMachineItemCloud;
    4647
     
    104105    /** Constructs Chooser-pane passing @a pParent to the base-class.
    105106      * @param  pActionPool  Brings the action-pool reference.  */
    106     UIChooser(QWidget *pParent, UIActionPool *pActionPool);
     107    UIChooser(UIVirtualBoxManagerWidget *pParent, UIActionPool *pActionPool);
    107108    /** Destructs Chooser-pane. */
    108109    virtual ~UIChooser() RT_OVERRIDE;
     
    237238    /** @name General stuff.
    238239      * @{ */
     240        /** Holds the parent reference. */
     241        UIVirtualBoxManagerWidget *m_pParent;
     242
    239243        /** Holds the action-pool reference. */
    240244        UIActionPool *m_pActionPool;
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