Changeset 104563 in vbox
- Timestamp:
- May 8, 2024 4:19:39 PM (7 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r104559 r104563 30 30 #include <QHeaderView> 31 31 #include <QLabel> 32 #include <QListWidget>33 32 #include <QPushButton> 34 33 #include <QTabBar> … … 37 36 /* GUI includes: */ 38 37 #include "QIComboBox.h" 38 #include "QIListWidget.h" 39 39 #include "QIToolButton.h" 40 40 #include "UICloudNetworkingStuff.h" … … 169 169 170 170 /* Prepare source image list: */ 171 m_pSourceImageList = new Q ListWidget(pWidgetSource);171 m_pSourceImageList = new QIListWidget(pWidgetSource); 172 172 if (m_pSourceImageList) 173 173 { … … 227 227 connect(m_pSourceTabBar, &QTabBar::currentChanged, 228 228 this, &UIWizardNewCloudVMPageExpert::sltHandleSourceTabBarChange); 229 connect(m_pSourceImageList, &Q ListWidget::currentRowChanged,229 connect(m_pSourceImageList, &QIListWidget::currentRowChanged, 230 230 this, &UIWizardNewCloudVMPageExpert::sltHandleSourceImageChange); 231 231 } … … 258 258 } 259 259 260 /* Translate source tab-bar: */261 if (m_pSourceTabBar)262 {263 m_pSourceTabBar->setTabText(0, UIWizardNewCloudVM::tr("&Images"));264 m_pSourceTabBar->setTabText(1, UIWizardNewCloudVM::tr("&Boot Volumes"));265 }266 267 260 /* Translate profile stuff: */ 268 261 if (m_pProfileLabel) … … 275 268 m_pProfileToolButton->setToolTip(UIWizardNewCloudVM::tr("Opens cloud profile manager...")); 276 269 } 270 271 /* Translate source tab-bar: */ 272 if (m_pSourceTabBar) 273 { 274 m_pSourceTabBar->setTabText(0, UIWizardNewCloudVM::tr("&Images")); 275 m_pSourceTabBar->setTabText(1, UIWizardNewCloudVM::tr("&Boot Volumes")); 276 } 277 278 /* Translate source image list: */ 279 m_pSourceImageList->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the source images or boot volumes.")); 277 280 } 278 281 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h
r104547 r104563 115 115 QTabBar *m_pSourceTabBar; 116 116 /** Holds the source image list instance. */ 117 Q ListWidget*m_pSourceImageList;117 QIListWidget *m_pSourceImageList; 118 118 119 119 /** Holds the Form Editor widget instance. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r104559 r104563 29 29 #include <QGridLayout> 30 30 #include <QLabel> 31 #include <QListWidget>32 31 #include <QPushButton> 33 32 #include <QTabBar> … … 36 35 /* GUI includes: */ 37 36 #include "QIComboBox.h" 37 #include "QIListWidget.h" 38 38 #include "QIRichTextLabel.h" 39 39 #include "QIToolButton.h" … … 198 198 } 199 199 200 void UIWizardNewCloudVMSource::populateSourceImages(Q ListWidget *pList,200 void UIWizardNewCloudVMSource::populateSourceImages(QIListWidget *pList, 201 201 QTabBar *pTabBar, 202 202 UINotificationCenter *pCenter, … … 234 234 { 235 235 /* Create list item: */ 236 Q ListWidgetItem *pItem = new QListWidgetItem(names.at(i), pList);236 QIListWidgetItem *pItem = new QIListWidgetItem(names.at(i), pList); 237 237 if (pItem) 238 238 { … … 273 273 } 274 274 275 QString UIWizardNewCloudVMSource::currentListWidgetData(Q ListWidget *pList)275 QString UIWizardNewCloudVMSource::currentListWidgetData(QIListWidget *pList) 276 276 { 277 277 /* Sanity check: */ 278 278 AssertPtrReturn(pList, QString()); 279 279 280 Q ListWidgetItem *pItem = pList->currentItem();280 QIListWidgetItem *pItem = QIListWidgetItem::toItem(pList->currentItem()); 281 281 return pItem ? pItem->data(Qt::UserRole).toString() : QString(); 282 282 } … … 408 408 409 409 /* Prepare source image list: */ 410 m_pSourceImageList = new Q ListWidget(this);410 m_pSourceImageList = new QIListWidget(this); 411 411 if (m_pSourceImageList) 412 412 { … … 455 455 connect(m_pSourceTabBar, &QTabBar::currentChanged, 456 456 this, &UIWizardNewCloudVMPageSource::sltHandleSourceTabBarChange); 457 connect(m_pSourceImageList, &Q ListWidget::currentRowChanged,457 connect(m_pSourceImageList, &QIListWidget::currentRowChanged, 458 458 this, &UIWizardNewCloudVMPageSource::sltHandleSourceImageChange); 459 459 } … … 504 504 m_pSourceTabBar->setTabText(0, UIWizardNewCloudVM::tr("&Images")); 505 505 m_pSourceTabBar->setTabText(1, UIWizardNewCloudVM::tr("&Boot Volumes")); 506 507 /* Translate source image list: */ 508 m_pSourceImageList->setWhatsThis(UIWizardNewCloudVM::tr("Lists all the source images or boot volumes.")); 506 509 507 510 /* Adjust label widths: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h
r104555 r104563 41 41 class QGridLayout; 42 42 class QLabel; 43 class Q ListWidget;43 class QIListWidget; 44 44 class QTabBar; 45 45 class QIComboBox; … … 79 79 @param pTabBar Brings the tab-bar source images should be acquired for. 80 80 @param comClient Brings the cloud client source images should be acquired from. */ 81 void populateSourceImages(Q ListWidget *pList,81 void populateSourceImages(QIListWidget *pList, 82 82 QTabBar *pTabBar, 83 83 UINotificationCenter *pCenter, … … 93 93 94 94 /** Returns current user data for @a pList specified. */ 95 QString currentListWidgetData(Q ListWidget *pList);95 QString currentListWidgetData(QIListWidget *pList); 96 96 } 97 97 … … 171 171 QTabBar *m_pSourceTabBar; 172 172 /** Holds the source image list instance. */ 173 Q ListWidget*m_pSourceImageList;173 QIListWidget *m_pSourceImageList; 174 174 }; 175 175
Note:
See TracChangeset
for help on using the changeset viewer.