VirtualBox

Changeset 81827 in vbox


Ignore:
Timestamp:
Nov 13, 2019 2:02:15 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: UISlidingToolBar: Regression fix for r133541: Using abstract signal-slot connection since the base classes can be different.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISlidingToolBar.cpp

    r80955 r81827  
    167167                pal2.setColor(QPalette::Window, palette().color(QPalette::Window));
    168168                m_pWidget->setPalette(pal2);
    169                 UIMenuBarEditorWidget *pEditorWidget = qobject_cast<UIMenuBarEditorWidget*>(m_pWidget);
    170                 if (pEditorWidget)
    171                     connect(pEditorWidget, &UIMenuBarEditorWidget::sigCancelClicked, this, &UISlidingToolBar::close);
     169                /* Using abstract (old-style) connection here(!) since the base classes can be different: */
     170                connect(m_pWidget, SIGNAL(sigCancelClicked()), this, SLOT(close()));
    172171                /* Add child-widget into area: */
    173172                m_pWidget->setParent(m_pArea);
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