Changeset 104297 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
- Timestamp:
- Apr 11, 2024 1:20:43 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r104228 r104297 70 70 /** A QWidget extension containing text entry fields for password and username and buttons to 71 71 * start/stop a guest session. */ 72 class UIGuestSessionWidget : public Q IWithRetranslateUI<QWidget>72 class UIGuestSessionWidget : public QWidget 73 73 { 74 74 Q_OBJECT; … … 92 92 protected: 93 93 94 void retranslateUi() RT_OVERRIDE;95 94 void keyPressEvent(QKeyEvent * pEvent) RT_OVERRIDE; 96 95 void showEvent(QShowEvent *pEvent) RT_OVERRIDE; … … 98 97 private slots: 99 98 99 void sltRetranslateUI(); 100 100 void sltButtonClick(); 101 101 void sltHandleTextChanged(const QString &strText); … … 129 129 130 130 UIGuestSessionWidget::UIGuestSessionWidget(QWidget *pParent /* = 0 */) 131 : Q IWithRetranslateUI<QWidget>(pParent)131 : QWidget(pParent) 132 132 , m_enmButtonMode(ButtonMode_Open) 133 133 , m_pUserNameEdit(0) … … 187 187 m_pMainLayout->insertStretch(-1, 1); 188 188 switchSessionOpenMode(); 189 retranslateUi(); 189 sltRetranslateUI(); 190 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 191 this, &UIGuestSessionWidget::sltRetranslateUI); 190 192 } 191 193 … … 204 206 } 205 207 206 void UIGuestSessionWidget:: retranslateUi()208 void UIGuestSessionWidget::sltRetranslateUI() 207 209 { 208 210 if (m_pUserNameEdit) … … 247 249 void UIGuestSessionWidget::showEvent(QShowEvent *pEvent) 248 250 { 249 Q IWithRetranslateUI<QWidget>::showEvent(pEvent);251 QWidget::showEvent(pEvent); 250 252 if (m_pUserNameEdit) 251 253 m_pUserNameEdit->setFocus(); … … 259 261 m_pPasswordEdit->setEnabled(true); 260 262 m_enmButtonMode = ButtonMode_Open; 261 retranslateUi();263 sltRetranslateUI(); 262 264 } 263 265 … … 269 271 m_pPasswordEdit->setEnabled(false); 270 272 m_enmButtonMode = ButtonMode_Close; 271 retranslateUi();273 sltRetranslateUI(); 272 274 } 273 275 … … 448 450 449 451 sltRetranslateUI(); 450 451 452 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 452 453 this, &UIFileManagerGuestTable::sltRetranslateUI);
Note:
See TracChangeset
for help on using the changeset viewer.