VirtualBox

Changeset 85530 in vbox for trunk


Ignore:
Timestamp:
Jul 29, 2020 5:37:17 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9722: Cloud Console Manager: Translation simplification.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleDetailsWidget.cpp

    r85486 r85530  
    6666    /* Load data: */
    6767    loadData();
    68 
    69     /* Translate linked widgets: */
    70     retranslateEditor();
    71     retranslateButtons();
    7268}
    7369
     
    8682    /* Load data: */
    8783    loadData();
    88 
    89     /* Translate linked widgets: */
    90     retranslateEditor();
    91     retranslateButtons();
    9284}
    9385
     
    110102void UICloudConsoleDetailsWidget::retranslateUi()
    111103{
    112     /* Translate name-editor labels: */
     104    /* Translate editor labels: */
    113105    m_pLabelApplicationName->setText(tr("Name:"));
    114106    m_pLabelApplicationPath->setText(tr("Path:"));
     
    116108    m_pLabelProfileName->setText(tr("Name:"));
    117109    m_pLabelProfileArgument->setText(tr("Argument:"));
    118     /* Translate name-editor: */
    119     retranslateEditor();
    120 
    121     /* Translate buttons: */
    122     retranslateButtons();
    123 
    124     /* Retranslate validation: */
    125     retranslateValidation();
    126 }
    127 
    128 void UICloudConsoleDetailsWidget::retranslateEditor()
    129 {
    130     /* Translate placeholders: */
     110
     111    /* Translate editor placeholders: */
    131112    m_pEditorApplicationName->setPlaceholderText(tr("Enter a name for this console application..."));
    132113    m_pEditorApplicationPath->setPlaceholderText(tr("Enter a path for this console application..."));
     
    134115    m_pEditorProfileName->setPlaceholderText(tr("Enter a name for this console profile..."));
    135116    m_pEditorProfileArgument->setPlaceholderText(tr("Enter an argument for this console profile..."));
    136 }
    137 
    138 void UICloudConsoleDetailsWidget::retranslateButtons()
    139 {
    140     /* Translate button-box: */
     117
     118    /* Translate buttons: */
    141119    if (m_pButtonBox)
    142120    {
    143         /* Common: 'Reset' button: */
     121        /* 'Reset' button: */
    144122        m_pButtonBox->button(QDialogButtonBox::Cancel)->setText(tr("Reset"));
    145123        m_pButtonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Reset changes in current console details"));
     
    147125        m_pButtonBox->button(QDialogButtonBox::Cancel)->
    148126            setToolTip(tr("Reset Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Cancel)->shortcut().toString()));
    149 
    150         /* Common: 'Apply' button: */
     127        /* 'Apply' button: */
    151128        m_pButtonBox->button(QDialogButtonBox::Ok)->setText(tr("Apply"));
    152129        m_pButtonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Apply changes in current console details"));
     
    155132            setToolTip(tr("Apply Changes (%1)").arg(m_pButtonBox->button(QDialogButtonBox::Ok)->shortcut().toString()));
    156133    }
     134
     135    /* Retranslate validation: */
     136    retranslateValidation();
    157137}
    158138
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleDetailsWidget.h

    r85486 r85530  
    149149    /** Handles translation event. */
    150150    virtual void retranslateUi() /* override */;
    151     /** Handles editor translation. */
    152     void retranslateEditor();
    153     /** Handles buttons translation. */
    154     void retranslateButtons();
    155151
    156152private slots:
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