- Timestamp:
- Feb 11, 2021 11:16:20 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
-
medium/UIMediumSearchWidget.h (modified) (1 diff)
-
widgets/UIToolBox.cpp (modified) (4 diffs)
-
widgets/UIToolBox.h (modified) (1 diff)
-
wizards/newvm/UIWizardNewVMPageExpert.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSearchWidget.h
r82968 r87722 60 60 void search(QITreeWidget* pTreeWidget, bool fGotoNext = true); 61 61 62 protected:62 protected: 63 63 64 64 void retranslateUi() /* override */; 65 65 virtual void showEvent(QShowEvent *pEvent) /* override */; 66 66 67 private slots:67 private slots: 68 68 69 69 void sltShowNextMatchingItem(); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBox.cpp
r87621 r87722 56 56 int titleHeight() const; 57 57 int pageWidgetHeight() const; 58 void setTitleIcon(const QIcon &icon );58 void setTitleIcon(const QIcon &icon, const QString &strToolTip); 59 59 60 60 protected: … … 197 197 } 198 198 199 void UIToolBoxPage::setTitleIcon(const QIcon &icon )199 void UIToolBoxPage::setTitleIcon(const QIcon &icon, const QString &strToolTip) 200 200 { 201 201 if (!m_pIconLabel) … … 208 208 const int iMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 209 209 m_pIconLabel->setPixmap(icon.pixmap(windowHandle(), QSize(iMetric, iMetric))); 210 m_pIconLabel->setToolTip(strToolTip); 210 211 } 211 212 … … 332 333 } 333 334 334 void UIToolBox::setPageTitleIcon(int iIndex, const QIcon &icon )335 void UIToolBox::setPageTitleIcon(int iIndex, const QIcon &icon, const QString &strIconToolTip /* = QString() */) 335 336 { 336 337 QMap<int, UIToolBoxPage*>::iterator iterator = m_pages.find(iIndex); 337 338 if (iterator == m_pages.end()) 338 339 return; 339 iterator.value()->setTitleIcon(icon );340 iterator.value()->setTitleIcon(icon, strIconToolTip); 340 341 } 341 342 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBox.h
r87364 r87722 48 48 void setPageEnabled(int iIndex, bool fEnabled); 49 49 void setPageTitle(int iIndex, const QString &strTitle); 50 void setPageTitleIcon(int iIndex, const QIcon &icon );50 void setPageTitleIcon(int iIndex, const QIcon &icon, const QString &strIconToolTip = QString()); 51 51 void setCurrentPage(int iIndex); 52 52 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r87613 r87722 401 401 { 402 402 m_pToolBox->setPageTitleIcon(ExpertToolboxItems_NameAndOSType, 403 UIIconPool::iconSet(":/status_error_16px.png")); 403 UIIconPool::iconSet(":/status_error_16px.png"), 404 UIWizardNewVM::tr("A valid VM name is required")); 404 405 fIsComplete = false; 405 406 } … … 418 419 { 419 420 m_pToolBox->setPageTitleIcon(ExpertToolboxItems_Unattended, 420 UIIconPool::iconSet(":/status_error_16px.png")); 421 UIIconPool::iconSet(":/status_error_16px.png"), 422 UIWizardNewVM::tr("Invalid path or unreadable ISO file")); 421 423 fIsComplete = false; 422 424 } … … 425 427 { 426 428 m_pToolBox->setPageTitleIcon(ExpertToolboxItems_Unattended, 427 UIIconPool::iconSet(":/status_error_16px.png")); 429 UIIconPool::iconSet(":/status_error_16px.png"), 430 UIWizardNewVM::tr("Invalid path or unreadable ISO file")); 431 428 432 fIsComplete = false; 429 433 } … … 433 437 { 434 438 m_pToolBox->setPageTitleIcon(ExpertToolboxItems_Unattended, 435 UIIconPool::iconSet(":/status_error_16px.png")); 439 UIIconPool::iconSet(":/status_error_16px.png"), 440 UIWizardNewVM::tr("Invalid username and password")); 436 441 fIsComplete = false; 437 442 }
Note:
See TracChangeset
for help on using the changeset viewer.

