VirtualBox

Changeset 85388 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 20, 2020 11:44:16 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9722: VirtualBox Manager: A couple of small fixes; First of all, public-key acquire dialog received NLS; Besides that, Delete Connection action went to end of own menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r85362 r85388  
    9494
    9595/** QDialog extension used to ask for a public key for console connection needs. */
    96 class UIAcquirePublicKeyDialog : public QDialog
     96class UIAcquirePublicKeyDialog : public QIWithRetranslateUI<QDialog>
    9797{
    9898    Q_OBJECT;
     
    115115    /** Performs revalidation. */
    116116    void sltRevalidate();
     117
     118protected:
     119
     120    /** Handles translation event. */
     121    virtual void retranslateUi() /* override */;
    117122
    118123private:
     
    133138
    134139UIAcquirePublicKeyDialog::UIAcquirePublicKeyDialog(QWidget *pParent /* = 0 */)
    135     : QDialog(pParent)
     140    : QIWithRetranslateUI<QDialog>(pParent)
    136141    , m_pTextEditor(0)
    137142    , m_pButtonBox(0)
     
    178183}
    179184
     185void UIAcquirePublicKeyDialog::retranslateUi()
     186{
     187    setWindowTitle(tr("Provide public key"));
     188}
     189
    180190void UIAcquirePublicKeyDialog::prepare()
    181191{
     
    201211        }
    202212    }
     213
     214    /* Apply language settings: */
     215    retranslateUi();
    203216}
    204217
     
    25362549    else
    25372550    {
    2538         pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_Console_S_DeleteConnection));
    2539         pMenu->addSeparator();
     2551        /* Copy fingerprint to clipboard action: */
    25402552        QAction *pAction = pMenu->addAction(UIIconPool::iconSet(":/cloud_machine_console_copy_connection_fingerprint_16px.png",
    25412553                                                                ":/cloud_machine_console_copy_connection_fingerprint_disabled_16px.png"),
     
    25432555                                            this, &UIVirtualBoxManager::sltCopyConsoleConnectionFingerprint);
    25442556        pAction->setProperty("fingerprint", strFingerprint);
     2557
     2558        /* Copy command to clipboard actions: */
    25452559        pMenu->addAction(actionPool()->action(UIActionIndexST_M_Machine_M_Console_S_CopyCommandSerial));
    25462560        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));
    25472565    }
    25482566}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette