VirtualBox

Ignore:
Timestamp:
Dec 6, 2022 10:31:12 AM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9898: Migrating UIFileManagerTable stuff to Qt6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp

    r96407 r97755  
    301301    if (m_pHistoryComboBox)
    302302    {
    303 #ifdef VBOX_IS_QT6_OR_LATER
    304         disconnect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged),
    305                    this, &UIFileManagerNavigationWidget::sltHandlePathChange);
     303        m_pHistoryComboBox->blockSignals(true);
    306304        m_pHistoryComboBox->clear();
    307         connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged),
    308                 this, &UIFileManagerNavigationWidget::sltHandlePathChange);
    309 #else
    310         disconnect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentIndexChanged),
    311                    this, &UIFileManagerNavigationWidget::sltHandlePathChange);
    312         m_pHistoryComboBox->clear();
    313         connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentIndexChanged),
    314                 this, &UIFileManagerNavigationWidget::sltHandlePathChange);
    315 #endif
     305        m_pHistoryComboBox->blockSignals(false);
    316306    }
    317307
     
    348338            connect(m_pHistoryComboBox, &UIFileManagerHistoryComboBox::sigHidePopup,
    349339                    this, &UIFileManagerNavigationWidget::sltHandleHidePopup);
    350 #ifdef VBOX_IS_QT6_OR_LATER
    351             connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged),
     340            connect(m_pHistoryComboBox, &UIFileManagerHistoryComboBox::currentTextChanged,
    352341                    this, &UIFileManagerNavigationWidget::sltHandlePathChange);
    353 #else
    354             connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentIndexChanged),
    355                     this, &UIFileManagerNavigationWidget::sltHandlePathChange);
    356 #endif
    357342
    358343            m_pContainer->addWidget(m_pBreadCrumbs);
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