Changeset 104567 in vbox
- Timestamp:
- May 8, 2024 4:46:37 PM (7 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp
r104559 r104567 31 31 #include <QHeaderView> 32 32 #include <QLabel> 33 #include <QListWidget>34 33 #include <QPushButton> 35 34 #include <QTableWidget> … … 38 37 /* GUI includes: */ 39 38 #include "QIComboBox.h" 39 #include "QIListWidget.h" 40 40 #include "QIToolButton.h" 41 41 #include "UICloudNetworkingStuff.h" … … 154 154 155 155 /* Prepare source instances table: */ 156 m_pSourceInstanceList = new Q ListWidget(pWidgetSource);156 m_pSourceInstanceList = new QIListWidget(pWidgetSource); 157 157 if (m_pSourceInstanceList) 158 158 { … … 187 187 connect(m_pProfileToolButton, &QIToolButton::clicked, 188 188 this, &UIWizardAddCloudVMPageExpert::sltHandleProfileButtonClick); 189 connect(m_pSourceInstanceList, &Q ListWidget::itemSelectionChanged,189 connect(m_pSourceInstanceList, &QIListWidget::itemSelectionChanged, 190 190 this, &UIWizardAddCloudVMPageExpert::sltHandleSourceInstanceChange); 191 191 } … … 227 227 m_pProfileToolButton->setToolTip(UIWizardAddCloudVM::tr("Opens cloud profile manager...")); 228 228 } 229 230 /* Translate source stuff: */ 231 m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances.")); 229 232 } 230 233 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h
r104558 r104567 38 38 class QGridLayout; 39 39 class QLabel; 40 class QIListWidget; 40 41 class UIToolBox; 41 42 class UIWizardAddCloudVM; … … 103 104 QLabel *m_pSourceInstanceLabel; 104 105 /** Holds the source instance list instance. */ 105 Q ListWidget*m_pSourceInstanceList;106 QIListWidget *m_pSourceInstanceList; 106 107 }; 107 108 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp
r104559 r104567 30 30 #include <QHeaderView> 31 31 #include <QLabel> 32 #include <QListWidget>33 32 #include <QPushButton> 34 33 #include <QVBoxLayout> … … 36 35 /* GUI includes: */ 37 36 #include "QIComboBox.h" 37 #include "QIListWidget.h" 38 38 #include "QIRichTextLabel.h" 39 39 #include "QIToolButton.h" … … 197 197 } 198 198 199 void UIWizardAddCloudVMSource::populateProfileInstances(Q ListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient)199 void UIWizardAddCloudVMSource::populateProfileInstances(QIListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient) 200 200 { 201 201 /* Sanity check: */ … … 220 220 { 221 221 /* Create list item: */ 222 Q ListWidgetItem *pItem = new QListWidgetItem(names.at(i), pList);222 QIListWidgetItem *pItem = new QIListWidgetItem(names.at(i), pList); 223 223 if (pItem) 224 224 { … … 237 237 } 238 238 239 QStringList UIWizardAddCloudVMSource::currentListWidgetData(Q ListWidget *pList)239 QStringList UIWizardAddCloudVMSource::currentListWidgetData(QIListWidget *pList) 240 240 { 241 241 QStringList result; 242 foreach (Q ListWidgetItem *pItem, pList->selectedItems())242 foreach (QIListWidgetItem *pItem, pList->selectedItems()) 243 243 result << pItem->data(Qt::UserRole).toString(); 244 244 return result; … … 350 350 351 351 /* Prepare source instances table: */ 352 m_pSourceInstanceList = new Q ListWidget(this);352 m_pSourceInstanceList = new QIListWidget(this); 353 353 if (m_pSourceInstanceList) 354 354 { … … 391 391 connect(m_pProfileToolButton, &QIToolButton::clicked, 392 392 this, &UIWizardAddCloudVMPageSource::sltHandleProfileButtonClick); 393 connect(m_pSourceInstanceList, &Q ListWidget::itemSelectionChanged,393 connect(m_pSourceInstanceList, &QIListWidget::itemSelectionChanged, 394 394 this, &UIWizardAddCloudVMPageSource::sltHandleSourceInstanceChange); 395 395 } … … 435 435 m_pProfileToolButton->setToolTip(UIWizardAddCloudVM::tr("Opens cloud profile manager...")); 436 436 } 437 438 /* Translate source stuff: */ 437 439 m_pSourceInstanceLabel->setText(UIWizardAddCloudVM::tr("&Instances:")); 440 m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances.")); 438 441 439 442 /* Adjust label widths: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h
r104555 r104567 41 41 class QGridLayout; 42 42 class QLabel; 43 class QListWidget;44 43 class QIComboBox; 44 class QIListWidget; 45 45 class QIRichTextLabel; 46 46 class QIToolButton; … … 71 71 void populateProfiles(QIComboBox *pCombo, UINotificationCenter *pCenter, const QString &strProviderShortName, const QString &strProfileName); 72 72 /** Populates @a pList with profile instances available in @a comClient. */ 73 void populateProfileInstances(Q ListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient);73 void populateProfileInstances(QIListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient); 74 74 75 75 /** Returns current user data for @a pList specified. */ 76 QStringList currentListWidgetData(Q ListWidget *pList);76 QStringList currentListWidgetData(QIListWidget *pList); 77 77 } 78 78 … … 144 144 QLabel *m_pSourceInstanceLabel; 145 145 /** Holds the source instance list instance. */ 146 Q ListWidget*m_pSourceInstanceList;146 QIListWidget *m_pSourceInstanceList; 147 147 }; 148 148
Note:
See TracChangeset
for help on using the changeset viewer.