VirtualBox

Ignore:
Timestamp:
Sep 12, 2019 12:21:45 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8938. Converting connection syntaxes under manager and global subfolders.not complete.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp

    r80723 r80760  
    34693469{
    34703470    /* Prepare connections: */
    3471     connect(gShortcutPool, SIGNAL(sigSelectorShortcutsReloaded()), this, SLOT(sltApplyShortcuts()));
    3472     connect(gShortcutPool, SIGNAL(sigMachineShortcutsReloaded()), this, SLOT(sltApplyShortcuts()));
    3473     connect(gEDataManager, SIGNAL(sigMenuBarConfigurationChange(const QUuid &)),
    3474             this, SLOT(sltHandleConfigurationChange(const QUuid &)));
     3471    connect(gShortcutPool, &UIShortcutPool::sigSelectorShortcutsReloaded,
     3472            this, &UIActionPoolRuntime::sltApplyShortcuts);
     3473    connect(gShortcutPool, &UIShortcutPool::sigMachineShortcutsReloaded,
     3474            this, &UIActionPoolRuntime::sltApplyShortcuts);
     3475    connect(gEDataManager, &UIExtraDataManager::sigMenuBarConfigurationChange,
     3476            this, &UIActionPoolRuntime::sltHandleConfigurationChange);
    34753477
    34763478    /* Call to base-class: */
     
    37723774                                             QApplication::translate("UIMultiScreenLayout", "Virtual Screen %1").arg(iGuestScreenIndex + 1));
    37733775            pSubMenu->setProperty("Guest Screen Index", iGuestScreenIndex);
    3774             connect(pSubMenu, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuViewScreen()));
     3776            connect(pSubMenu, &QMenu::aboutToShow, this, &UIActionPoolRuntime::sltPrepareMenuViewScreen);
    37753777        }
    37763778    }
     
    38153817                                             QApplication::translate("UIMultiScreenLayout", "Virtual Screen %1").arg(iGuestScreenIndex + 1));
    38163818            pSubMenu->setProperty("Guest Screen Index", iGuestScreenIndex);
    3817             connect(pSubMenu, SIGNAL(aboutToShow()), this, SLOT(sltPrepareMenuViewScreen()));
     3819            connect(pSubMenu, &QMenu::aboutToShow, this, &UIActionPoolRuntime::sltPrepareMenuViewScreen);
    38183820        }
    38193821    }
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r79365 r80760  
    590590    UIThreadGroupDefinitionSave::prepare();
    591591    emit sigGroupSavingStateChanged();
    592     connect(UIThreadGroupDefinitionSave::instance(), SIGNAL(sigReload(QUuid)),
    593             this, SLOT(sltReloadMachine(QUuid)));
     592    connect(UIThreadGroupDefinitionSave::instance(), &UIThreadGroupDefinitionSave::sigReload,
     593            this, &UIChooserAbstractModel::sltReloadMachine);
    594594    UIThreadGroupDefinitionSave::instance()->configure(this, m_groups, groups);
    595595    UIThreadGroupDefinitionSave::instance()->start();
     
    712712    m_oldLists = oldLists;
    713713    m_newLists = newLists;
    714     connect(this, SIGNAL(sigComplete()), pParent, SLOT(sltGroupDefinitionsSaveComplete()));
     714    connect(this, &UIThreadGroupDefinitionSave::sigComplete,
     715            qobject_cast<UIChooserAbstractModel*>(pParent), &UIChooserAbstractModel::sltGroupDefinitionsSaveComplete);
    715716}
    716717
     
    837838{
    838839    m_groups = groups;
    839     connect(this, SIGNAL(sigComplete()), pParent, SLOT(sltGroupOrdersSaveComplete()));
     840    connect(this, &UIThreadGroupOrderSave::sigComplete,
     841            qobject_cast<UIChooserAbstractModel*>(pParent), &UIChooserAbstractModel::sltGroupOrdersSaveComplete);
    840842}
    841843
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r77948 r80760  
    9999    /** @} */
    100100
     101public slots:
     102
     103   /** @name Group saving stuff.
     104      * @{ */
     105        /** Handles group definition saving complete. */
     106        void sltGroupDefinitionsSaveComplete();
     107        /** Handles group order saving complete. */
     108        void sltGroupOrdersSaveComplete();
     109    /** @} */
     110
    101111protected slots:
    102112
     
    127137        /** Handles request to start group saving. */
    128138        void sltStartGroupSaving();
    129         /** Handles group definition saving complete. */
    130         void sltGroupDefinitionsSaveComplete();
    131         /** Handles group order saving complete. */
    132         void sltGroupOrdersSaveComplete();
    133139    /** @} */
    134140
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