Changeset 85388 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 20, 2020 11:44:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r85362 r85388 94 94 95 95 /** QDialog extension used to ask for a public key for console connection needs. */ 96 class UIAcquirePublicKeyDialog : public Q Dialog96 class UIAcquirePublicKeyDialog : public QIWithRetranslateUI<QDialog> 97 97 { 98 98 Q_OBJECT; … … 115 115 /** Performs revalidation. */ 116 116 void sltRevalidate(); 117 118 protected: 119 120 /** Handles translation event. */ 121 virtual void retranslateUi() /* override */; 117 122 118 123 private: … … 133 138 134 139 UIAcquirePublicKeyDialog::UIAcquirePublicKeyDialog(QWidget *pParent /* = 0 */) 135 : Q Dialog(pParent)140 : QIWithRetranslateUI<QDialog>(pParent) 136 141 , m_pTextEditor(0) 137 142 , m_pButtonBox(0) … … 178 183 } 179 184 185 void UIAcquirePublicKeyDialog::retranslateUi() 186 { 187 setWindowTitle(tr("Provide public key")); 188 } 189 180 190 void UIAcquirePublicKeyDialog::prepare() 181 191 { … … 201 211 } 202 212 } 213 214 /* Apply language settings: */ 215 retranslateUi(); 203 216 } 204 217 … … 2536 2549 else 2537 2550 { 2538 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_Console_S_DeleteConnection)); 2539 pMenu->addSeparator(); 2551 /* Copy fingerprint to clipboard action: */ 2540 2552 QAction *pAction = pMenu->addAction(UIIconPool::iconSet(":/cloud_machine_console_copy_connection_fingerprint_16px.png", 2541 2553 ":/cloud_machine_console_copy_connection_fingerprint_disabled_16px.png"), … … 2543 2555 this, &UIVirtualBoxManager::sltCopyConsoleConnectionFingerprint); 2544 2556 pAction->setProperty("fingerprint", strFingerprint); 2557 2558 /* Copy command to clipboard actions: */ 2545 2559 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_Console_S_CopyCommandSerial)); 2546 2560 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_Console_S_CopyCommandVNC)); 2561 pMenu->addSeparator(); 2562 2563 /* Delete connection action finally: */ 2564 pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_Console_S_DeleteConnection)); 2547 2565 } 2548 2566 }
Note:
See TracChangeset
for help on using the changeset viewer.