Changeset 91242 in vbox
- Timestamp:
- Sep 15, 2021 10:09:24 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
-
medium/viso/UIVisoBrowserBase.cpp (modified) (2 diffs)
-
medium/viso/UIVisoCreator.cpp (modified) (2 diffs)
-
widgets/UIToolBox.cpp (modified) (8 diffs)
-
widgets/UIToolBox.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.cpp
r91235 r91242 45 45 void updateLineEditText(const QString &strText); 46 46 47 48 47 protected: 49 48 … … 95 94 { 96 95 if (m_pExpandButton) 97 m_pExpandButton->setToolTip(QApplication::translate("UIVisoCreator", "Click to show/hide the tree view")); 96 m_pExpandButton->setToolTip(QApplication::translate("UIVisoCreator", "Click to show/hide the tree view.")); 97 if (m_pLineEdit) 98 m_pLineEdit->setToolTip(QApplication::translate("UIVisoCreator", "Shows the current location.")); 98 99 } 99 100 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r86233 r91242 143 143 if (m_pRenameAction) 144 144 m_pRenameAction->setToolTip(QApplication::translate("UIVisoCreator", "Rename the selected object")); 145 if (m_pButtonBox && m_pButtonBox->button(QDialogButtonBox::Ok)) 146 m_pButtonBox->button(QDialogButtonBox::Ok)->setText(QApplication::translate("UIVisoCreator", "C&reate")); 145 147 } 146 148 … … 326 328 m_pMainLayout->addWidget(m_pButtonBox, 4, 3, 1, 5, Qt::AlignRight); 327 329 } 328 329 330 } 330 331 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBox.cpp
r90333 r91242 67 67 *********************************************************************************************************************************/ 68 68 69 class UIToolBoxPage : public Q Widget69 class UIToolBoxPage : public QIWithRetranslateUI<QWidget> 70 70 { 71 71 … … 80 80 UIToolBoxPage(bool fEnableCheckBoxEnabled = false, QWidget *pParent = 0); 81 81 void setTitle(const QString &strTitle); 82 /* @p pWidget's ownership is transferred to the page. */83 void setWidget(QWidget *pWidget);84 82 void setTitleBackgroundColor(const QColor &color); 85 83 void setExpanded(bool fExpanded); … … 94 92 95 93 virtual bool eventFilter(QObject *pWatched, QEvent *pEvent) /* override */; 94 virtual void retranslateUi() /* override final */; 96 95 97 96 private slots: … … 103 102 void prepare(bool fEnableCheckBoxEnabled); 104 103 void setExpandCollapseIcon(); 104 /* @p pWidget's ownership is transferred to the page. */ 105 void setWidget(QWidget *pWidget); 105 106 106 107 bool m_fExpanded; … … 116 117 QIcon m_expandCollapseIcon; 117 118 UIToolPageButton *m_pTitleButton; 119 friend class UIToolBox; 118 120 }; 119 121 … … 162 164 163 165 UIToolBoxPage::UIToolBoxPage(bool fEnableCheckBoxEnabled /* = false */, QWidget *pParent /* = 0 */) 164 :Q Widget(pParent)166 :QIWithRetranslateUI<QWidget>(pParent) 165 167 , m_fExpanded(false) 166 168 , m_pLayout(0) … … 223 225 224 226 setExpandCollapseIcon(); 227 retranslateUi(); 225 228 } 226 229 … … 337 340 } 338 341 342 void UIToolBoxPage::retranslateUi() 343 { 344 if (m_pTitleButton) 345 m_pTitleButton->setToolTip(tr("Expands and hides the page")); 346 } 347 339 348 340 349 /********************************************************************************************************************************* -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBox.h
r90333 r91242 56 56 protected: 57 57 58 virtual void retranslateUi() /* override */;58 virtual void retranslateUi() /* override final */; 59 59 60 60 private slots:
Note:
See TracChangeset
for help on using the changeset viewer.

