Changeset 103948 in vbox
- Timestamp:
- Mar 20, 2024 11:18:23 AM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 162324
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.h
r103947 r103948 291 291 void updateVMExitMetric(quint64 uTotalVMExits); 292 292 void resetVMExitInfoLabel(); 293 virtual void resetCPUInfoLabel() ;293 virtual void resetCPUInfoLabel() override; 294 294 void resetNetworkInfoLabel(); 295 295 void resetDiskIOInfoLabel(); … … 351 351 void updateRAMChart(quint64 iUsagePercentage, const QString &strLabel); 352 352 /** @} */ 353 virtual void resetCPUInfoLabel() ;353 virtual void resetCPUInfoLabel() override; 354 354 void resetNetworkInInfoLabel(); 355 355 void resetNetworkOutInfoLabel(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
r103771 r103948 45 45 #include "UIIconPool.h" 46 46 #include "UIMediumSizeEditor.h" 47 #include "UITranslationEventListener.h" 47 48 #include "UIUserNamePasswordEditor.h" 48 49 #include "UIWizardDiskEditors.h" … … 186 187 187 188 UIDiskVariantWidget::UIDiskVariantWidget(QWidget *pParent /* = 0 */) 188 : Q IWithRetranslateUI<QWidget>(pParent)189 : QWidget(pParent) 189 190 , m_pFixedCheckBox(0) 190 191 , m_pSplitBox(0) … … 204 205 pVariantLayout->addWidget(m_pSplitBox); 205 206 pVariantLayout->addStretch(); 206 retranslateUi(); 207 } 208 209 void UIDiskVariantWidget::retranslateUi() 207 sltRetranslateUI(); 208 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 209 this, &UIDiskVariantWidget::sltRetranslateUI); 210 } 211 212 void UIDiskVariantWidget::sltRetranslateUI() 210 213 { 211 214 if (m_pFixedCheckBox) … … 315 318 316 319 UIMediumSizeAndPathGroupBox::UIMediumSizeAndPathGroupBox(bool fExpertMode, QWidget *pParent, qulonglong uMinimumMediumSize) 317 : Q IWithRetranslateUI<QGroupBox>(pParent)320 : QGroupBox(pParent) 318 321 , m_pLocationEditor(0) 319 322 , m_pLocationOpenButton(0) … … 381 384 this, &UIMediumSizeAndPathGroupBox::sigMediumLocationButtonClicked); 382 385 383 retranslateUi(); 384 } 385 void UIMediumSizeAndPathGroupBox::retranslateUi() 386 sltRetranslateUI(); 387 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 388 this, &UIMediumSizeAndPathGroupBox::sltRetranslateUI); 389 } 390 void UIMediumSizeAndPathGroupBox::sltRetranslateUI() 386 391 { 387 392 if (m_fExpertMode) … … 555 560 556 561 UIDiskFormatsGroupBox::UIDiskFormatsGroupBox(bool fExpertMode, KDeviceType enmDeviceType, QWidget *pParent /* = 0 */) 557 : Q IWithRetranslateUI<QWidget>(pParent)562 : QWidget(pParent) 558 563 , UIDiskFormatBase(enmDeviceType, fExpertMode) 559 564 , m_pFormatButtonGroup(0) … … 593 598 populateFormats(); 594 599 createFormatWidgets(); 595 retranslateUi(); 596 } 597 598 void UIDiskFormatsGroupBox::retranslateUi() 600 sltRetranslateUI(); 601 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 602 this, &UIDiskFormatsGroupBox::sltRetranslateUI); 603 } 604 605 void UIDiskFormatsGroupBox::sltRetranslateUI() 599 606 { 600 607 QList<QAbstractButton*> buttons = m_pFormatButtonGroup ? m_pFormatButtonGroup->buttons() : QList<QAbstractButton*>(); … … 645 652 646 653 UIDiskFormatsComboBox::UIDiskFormatsComboBox(bool fExpertMode, KDeviceType enmDeviceType, QWidget *pParent /* = 0 */) 647 : QI WithRetranslateUI<QIComboBox>(pParent)654 : QIComboBox(pParent) 648 655 , UIDiskFormatBase(enmDeviceType, fExpertMode) 649 656 { … … 662 669 this, &UIDiskFormatsComboBox::sigMediumFormatChanged); 663 670 664 retranslateUi(); 671 sltRetranslateUI(); 672 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 673 this, &UIDiskFormatsComboBox::sltRetranslateUI); 665 674 } 666 675 … … 685 694 } 686 695 687 void UIDiskFormatsComboBox:: retranslateUi()696 void UIDiskFormatsComboBox::sltRetranslateUI() 688 697 { 689 698 for (int i = 0; i < count(); ++i) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.h
r103803 r103948 78 78 }; 79 79 80 class SHARED_LIBRARY_STUFF UIDiskVariantWidget : public Q IWithRetranslateUI<QWidget>80 class SHARED_LIBRARY_STUFF UIDiskVariantWidget : public QWidget 81 81 { 82 82 Q_OBJECT; … … 102 102 103 103 void sltVariantChanged(); 104 void sltRetranslateUI(); 104 105 105 106 private: 106 107 107 108 void prepare(); 108 virtual void retranslateUi() /* override final */;109 109 110 110 QCheckBox *m_pFixedCheckBox; … … 116 116 117 117 118 class SHARED_LIBRARY_STUFF UIMediumSizeAndPathGroupBox : public Q IWithRetranslateUI<QGroupBox>118 class SHARED_LIBRARY_STUFF UIMediumSizeAndPathGroupBox : public QGroupBox 119 119 { 120 120 Q_OBJECT; … … 143 143 bool isComplete() const; 144 144 145 private slots: 146 147 void sltRetranslateUI(); 148 145 149 private: 146 150 147 151 void prepare(qulonglong uMinimumMediumSize); 148 virtual void retranslateUi() /* override final */;149 152 150 153 QILineEdit *m_pLocationEditor; … … 197 200 }; 198 201 199 class SHARED_LIBRARY_STUFF UIDiskFormatsGroupBox : public Q IWithRetranslateUI<QWidget>, public UIDiskFormatBase202 class SHARED_LIBRARY_STUFF UIDiskFormatsGroupBox : public QWidget, public UIDiskFormatBase 200 203 { 201 204 Q_OBJECT; … … 211 214 virtual void setMediumFormat(const CMediumFormat &mediumFormat) /* override final */; 212 215 216 private slots: 217 218 void sltRetranslateUI(); 219 213 220 private: 214 221 215 222 void prepare(); 216 223 void createFormatWidgets(); 217 virtual void retranslateUi() /* override final */;218 224 219 225 QButtonGroup *m_pFormatButtonGroup; … … 221 227 }; 222 228 223 class SHARED_LIBRARY_STUFF UIDiskFormatsComboBox : public QI WithRetranslateUI<QIComboBox>, public UIDiskFormatBase229 class SHARED_LIBRARY_STUFF UIDiskFormatsComboBox : public QIComboBox, public UIDiskFormatBase 224 230 { 225 231 Q_OBJECT; … … 235 241 virtual void setMediumFormat(const CMediumFormat &mediumFormat) /* override final */; 236 242 243 private slots: 244 245 void sltRetranslateUI(); 246 237 247 private: 238 248 239 249 void prepare(); 240 virtual void retranslateUi() /* override final */;241 250 }; 242 251
Note:
See TracChangeset
for help on using the changeset viewer.