VirtualBox

Ignore:
Timestamp:
Sep 9, 2019 2:29:48 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8938. Converting connection syntaxes under settings. part 3.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp

    r79365 r80678  
    386386    bool isAllShortcutsUnique();
    387387
    388 private slots:
     388public slots:
    389389
    390390    /* Handler: Filtering stuff: */
     
    842842
    843843    /* Connect model: */
    844     connect(model(), SIGNAL(sigShortcutsLoaded()), this, SLOT(sltHandleShortcutsLoaded()));
     844    connect(qobject_cast<UIHotKeyTableModel*>(model()), &UIHotKeyTableModel::sigShortcutsLoaded,
     845            this, &UIHotKeyTable::sltHandleShortcutsLoaded);
    845846
    846847    /* Check if we do have proper item delegate: */
     
    11491150{
    11501151    /* Configure 'Selector UI' connections: */
    1151     connect(m_pSelectorFilterEditor, SIGNAL(textChanged(const QString &)),
    1152             m_pSelectorModel, SLOT(sltHandleFilterTextChange(const QString &)));
    1153     connect(m_pSelectorModel, SIGNAL(sigRevalidationRequired()), this, SLOT(revalidate()));
     1152    connect(m_pSelectorFilterEditor, &QLineEdit::textChanged,
     1153            m_pSelectorModel, &UIHotKeyTableModel::sltHandleFilterTextChange);
     1154    connect(m_pSelectorModel, &UIHotKeyTableModel::sigRevalidationRequired, this, &UIGlobalSettingsInput::revalidate);
    11541155
    11551156    /* Configure 'Runtime UI' connections: */
    1156     connect(m_pMachineFilterEditor, SIGNAL(textChanged(const QString &)),
    1157             m_pMachineModel, SLOT(sltHandleFilterTextChange(const QString &)));
    1158     connect(m_pMachineModel, SIGNAL(sigRevalidationRequired()), this, SLOT(revalidate()));
     1157    connect(m_pMachineFilterEditor, &QLineEdit::textChanged,
     1158            m_pMachineModel, &UIHotKeyTableModel::sltHandleFilterTextChange);
     1159    connect(m_pMachineModel, &UIHotKeyTableModel::sigRevalidationRequired, this, &UIGlobalSettingsInput::revalidate);
    11591160}
    11601161
     
    12061207
    12071208# include "UIGlobalSettingsInput.moc"
    1208 
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp

    r80277 r80678  
    236236
    237237    /* Setup connections: */
    238     connect(m_pEnableAdapterCheckBox, SIGNAL(toggled(bool)), this, SLOT(sltHandleAdapterActivityChange()));
     238    connect(m_pEnableAdapterCheckBox, &QCheckBox::toggled, this, &UIMachineSettingsNetwork::sltHandleAdapterActivityChange);
    239239    connect(m_pAttachmentTypeEditor, &UINetworkAttachmentEditor::sigValueTypeChanged,
    240240            this, &UIMachineSettingsNetwork::sltHandleAttachmentTypeChange);
    241241    connect(m_pAttachmentTypeEditor, &UINetworkAttachmentEditor::sigValueNameChanged,
    242242            this, &UIMachineSettingsNetwork::sltHandleAlternativeNameChange);
    243     connect(m_pAdvancedArrow, SIGNAL(sigClicked()), this, SLOT(sltHandleAdvancedButtonStateChange()));
    244     connect(m_pMACButton, SIGNAL(clicked()), this, SLOT(sltGenerateMac()));
    245     connect(m_pPortForwardingButton, SIGNAL(clicked()), this, SLOT(sltOpenPortForwardingDlg()));
    246     connect(this, SIGNAL(sigTabUpdated()), m_pParent, SLOT(sltHandleTabUpdate()));
     243    connect(m_pAdvancedArrow, &QIArrowButtonSwitch::sigClicked, this, &UIMachineSettingsNetwork::sltHandleAdvancedButtonStateChange);
     244    connect(m_pMACButton, &QIToolButton::clicked, this, &UIMachineSettingsNetwork::sltGenerateMac);
     245    connect(m_pPortForwardingButton, &QPushButton::clicked, this, &UIMachineSettingsNetwork::sltOpenPortForwardingDlg);
     246    connect(this, &UIMachineSettingsNetwork::sigTabUpdated, m_pParent, &UIMachineSettingsNetworkPage::sltHandleTabUpdate);
    247247
    248248    /* Prepare validation: */
     
    631631{
    632632    /* Configure validation: */
    633     connect(m_pMACEditor, SIGNAL(textChanged(const QString &)), m_pParent, SLOT(revalidate()));
     633    connect(m_pMACEditor, &QILineEdit::textChanged, m_pParent, &UIMachineSettingsNetworkPage::revalidate);
    634634}
    635635
     
    10191019                {
    10201020                    /* Configure tab: */
    1021                     connect(pTab, SIGNAL(sigNotifyAdvancedButtonStateChange(bool)),
    1022                             this, SLOT(sltHandleAdvancedButtonStateChange(bool)));
     1021                    connect(pTab, &UIMachineSettingsNetwork::sigNotifyAdvancedButtonStateChange,
     1022                            this, &UIMachineSettingsNetworkPage::sltHandleAdvancedButtonStateChange);
    10231023
    10241024                    /* Add tab into tab-widget: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h

    r80213 r80678  
    5858    const QStringList &natNetworkList() const { return m_natNetworkList; }
    5959
     60 public slots:
     61
     62    /** Handles particular tab update. */
     63    void sltHandleTabUpdate();
     64
    6065protected:
    6166
     
    8792
    8893private slots:
    89 
    90     /** Handles particular tab update. */
    91     void sltHandleTabUpdate();
    9294
    9395    /** Handles whether the advanced button is @a fExpanded. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSFDetails.cpp

    r79365 r80678  
    4343
    4444    /* Setup connections: */
    45     connect(mPsPath, SIGNAL(currentIndexChanged(int)), this, SLOT(sltSelectPath()));
    46     connect(mPsPath, SIGNAL(pathChanged(const QString &)), this, SLOT(sltSelectPath()));
    47     connect(mLeName, SIGNAL(textChanged(const QString &)), this, SLOT(sltValidate()));
     45    connect(mPsPath, static_cast<void(UIFilePathSelector::*)(int)>(&UIFilePathSelector::currentIndexChanged),
     46            this, &UIMachineSettingsSFDetails::sltSelectPath);
     47    connect(mPsPath, &UIFilePathSelector::pathChanged, this, &UIMachineSettingsSFDetails::sltSelectPath);
     48    connect(mLeName, &QLineEdit::textChanged, this, &UIMachineSettingsSFDetails::sltValidate);
    4849    if (fEnableSelector)
    49         connect(mCbPermanent, SIGNAL(toggled(bool)), this, SLOT(sltValidate()));
     50        connect(mCbPermanent, &QCheckBox::toggled, this, &UIMachineSettingsSFDetails::sltValidate);
    5051
    5152     /* Applying language settings: */
     
    184185    sltValidate();
    185186}
    186 
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