Changeset 80678 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 9, 2019 2:29:48 PM (5 years ago)
- 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 386 386 bool isAllShortcutsUnique(); 387 387 388 p rivateslots:388 public slots: 389 389 390 390 /* Handler: Filtering stuff: */ … … 842 842 843 843 /* Connect model: */ 844 connect(model(), SIGNAL(sigShortcutsLoaded()), this, SLOT(sltHandleShortcutsLoaded())); 844 connect(qobject_cast<UIHotKeyTableModel*>(model()), &UIHotKeyTableModel::sigShortcutsLoaded, 845 this, &UIHotKeyTable::sltHandleShortcutsLoaded); 845 846 846 847 /* Check if we do have proper item delegate: */ … … 1149 1150 { 1150 1151 /* 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); 1154 1155 1155 1156 /* 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); 1159 1160 } 1160 1161 … … 1206 1207 1207 1208 # include "UIGlobalSettingsInput.moc" 1208 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r80277 r80678 236 236 237 237 /* Setup connections: */ 238 connect(m_pEnableAdapterCheckBox, SIGNAL(toggled(bool)), this, SLOT(sltHandleAdapterActivityChange()));238 connect(m_pEnableAdapterCheckBox, &QCheckBox::toggled, this, &UIMachineSettingsNetwork::sltHandleAdapterActivityChange); 239 239 connect(m_pAttachmentTypeEditor, &UINetworkAttachmentEditor::sigValueTypeChanged, 240 240 this, &UIMachineSettingsNetwork::sltHandleAttachmentTypeChange); 241 241 connect(m_pAttachmentTypeEditor, &UINetworkAttachmentEditor::sigValueNameChanged, 242 242 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); 247 247 248 248 /* Prepare validation: */ … … 631 631 { 632 632 /* Configure validation: */ 633 connect(m_pMACEditor, SIGNAL(textChanged(const QString &)), m_pParent, SLOT(revalidate()));633 connect(m_pMACEditor, &QILineEdit::textChanged, m_pParent, &UIMachineSettingsNetworkPage::revalidate); 634 634 } 635 635 … … 1019 1019 { 1020 1020 /* Configure tab: */ 1021 connect(pTab, SIGNAL(sigNotifyAdvancedButtonStateChange(bool)),1022 this, SLOT(sltHandleAdvancedButtonStateChange(bool)));1021 connect(pTab, &UIMachineSettingsNetwork::sigNotifyAdvancedButtonStateChange, 1022 this, &UIMachineSettingsNetworkPage::sltHandleAdvancedButtonStateChange); 1023 1023 1024 1024 /* Add tab into tab-widget: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h
r80213 r80678 58 58 const QStringList &natNetworkList() const { return m_natNetworkList; } 59 59 60 public slots: 61 62 /** Handles particular tab update. */ 63 void sltHandleTabUpdate(); 64 60 65 protected: 61 66 … … 87 92 88 93 private slots: 89 90 /** Handles particular tab update. */91 void sltHandleTabUpdate();92 94 93 95 /** Handles whether the advanced button is @a fExpanded. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSFDetails.cpp
r79365 r80678 43 43 44 44 /* 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); 48 49 if (fEnableSelector) 49 connect(mCbPermanent, SIGNAL(toggled(bool)), this, SLOT(sltValidate()));50 connect(mCbPermanent, &QCheckBox::toggled, this, &UIMachineSettingsSFDetails::sltValidate); 50 51 51 52 /* Applying language settings: */ … … 184 185 sltValidate(); 185 186 } 186
Note:
See TracChangeset
for help on using the changeset viewer.