Changeset 97679 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 25, 2022 10:04:21 AM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.cpp
r96407 r97679 409 409 this, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated)); 410 410 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textActivated was added in 5.14 actually */ 411 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::textActivated),412 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::textActivated));411 connect(m_pComboBox, &QComboBox::textActivated, 412 this, &QIComboBox::textActivated); 413 413 #else 414 414 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::activated), 415 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox:: activated));415 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::textActivated)); 416 416 #endif 417 417 connect(m_pComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 418 418 this, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged)); 419 #ifndef VBOX_IS_QT6_OR_LATER420 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged),421 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::currentIndexChanged));422 #endif423 419 connect(m_pComboBox, &QComboBox::currentTextChanged, this, &QIComboBox::currentTextChanged); 424 420 connect(m_pComboBox, &QComboBox::editTextChanged, this, &QIComboBox::editTextChanged); 425 421 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textHighlighted was added in 5.14 actually */ 426 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::textHighlighted),427 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::textHighlighted));422 connect(m_pComboBox, &QComboBox::textHighlighted, 423 this, &QIComboBox::textHighlighted); 428 424 #else 429 425 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::highlighted), 430 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::highlighted)); 431 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::highlighted), 432 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::highlighted)); 426 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::textHighlighted)); 433 427 #endif 434 428 /* Add combo-box into layout: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.h
r96407 r97679 53 53 void activated(int iIndex); 54 54 /** Notifies listeners about user chooses an item with @a strText in the combo-box. */ 55 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textHighlighted was added in 5.14 actually */56 55 void textActivated(const QString &strText); 57 #else58 void activated(const QString &strText);59 #endif60 56 61 57 /** Notifies listeners about current item changed to item with @a iIndex. */ 62 58 void currentIndexChanged(int iIndex); 63 #ifndef VBOX_IS_QT6_OR_LATER64 /** Notifies listeners about current item changed to item with @a strText. */65 void currentIndexChanged(const QString &strText);66 #endif67 59 68 60 /** Notifies listeners about current combo-box text is changed to @a strText. */ … … 74 66 void highlighted(int iIndex); 75 67 /** Notifies listeners about user highlighted an item with @a strText in the popup list-view. */ 76 #ifdef VBOX_IS_QT6_OR_LATER /** @todo qt6: textHighlighted was added in 5.14 actually */77 68 void textHighlighted(const QString &strText); 78 #else79 void highlighted(const QString &strText);80 #endif81 69 82 70 public: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp
r96407 r97679 150 150 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 151 151 this, &UIWizardAddCloudVMPageExpert::sltHandleProviderComboChange); 152 connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated),152 connect(m_pProviderComboBox, &QIComboBox::activated, 153 153 this, &UIWizardAddCloudVMPageExpert::sltHandleProviderComboChange); 154 154 connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp
r96426 r97679 368 368 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 369 369 this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange); 370 connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated),370 connect(m_pProviderComboBox, &QIComboBox::activated, 371 371 this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange); 372 372 connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r96426 r97679 323 323 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 324 324 this, &UIWizardImportAppPageExpert::sltHandleSourceComboChange); 325 connect(m_pSourceComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated),325 connect(m_pSourceComboBox, &QIComboBox::activated, 326 326 this, &UIWizardImportAppPageExpert::sltHandleSourceComboChange); 327 327 connect(m_pFileSelector, &UIEmptyFilePathSelector::pathChanged, -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r96407 r97679 186 186 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 187 187 this, &UIWizardNewCloudVMPageExpert::sltHandleProviderComboChange); 188 connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated),188 connect(m_pProviderComboBox, &QIComboBox::activated, 189 189 this, &UIWizardNewCloudVMPageExpert::sltHandleProviderComboChange); 190 190 connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged), -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r96426 r97679 430 430 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged, 431 431 this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange); 432 connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated),432 connect(m_pProviderComboBox, &QIComboBox::activated, 433 433 this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange); 434 434 connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged),
Note:
See TracChangeset
for help on using the changeset viewer.