VirtualBox

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


Ignore:
Timestamp:
Jul 10, 2024 2:00:00 PM (6 months ago)
Author:
vboxsync
Message:

FE/Qt: NLS stuff: Reworking how we representing 3D acceleration feature being enabled; No more other display accelerations in any case.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp

    r105258 r105259  
    500500    }
    501501
    502     /* Acceleration: */
     502    /* 3D acceleration: */
    503503    if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration)
    504504    {
    505         QStringList acceleration;
    506         /* 3D acceleration: */
    507505        if (comGraphics.GetAccelerate3DEnabled())
    508             acceleration << QApplication::translate("UIDetails", "3D", "details (display)");
    509         if (!acceleration.isEmpty())
    510             table << UITextTableLine(QApplication::translate("UIDetails", "Acceleration", "details (display)"),
    511                                      acceleration.join(", "));
     506            table << UITextTableLine(QApplication::translate("UIDetails", "3D Acceleration", "details (display)"),
     507                                     QApplication::translate("UIDetails", "Enabled", "details (display/3D Acceleration)"));
    512508    }
    513509
     
    14611457    fAcceleration3D = comGraphics.GetAccelerate3DEnabled();
    14621458    if (fAcceleration3D)
    1463     {
    1464         const QString strAcceleration3D = fAcceleration3D
    1465             ? QApplication::translate("UICommon", "Enabled", "details report (3D Acceleration)")
    1466             : QApplication::translate("UICommon", "Disabled", "details report (3D Acceleration)");
    14671459        strInfo += e_strTableRow2
    1468             .arg(QApplication::translate("UIIndicatorDisplay", "3D acceleration"), strAcceleration3D);
    1469     }
     1460            .arg(QApplication::translate("UIDetails", "3D Acceleration", "details (display)"),
     1461                 QApplication::translate("UIDetails", "Enabled", "details (display/3D Acceleration)"));
    14701462}
    14711463
  • trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp

    r105258 r105259  
    14881488
    14891489            /* Acceleration? */
    1490             const QString strAcceleration = displayAccelerationReport(comGraphics);
    1491             const QString strAccelerationOld = displayAccelerationReport(comGraphicsOld);
    1492             if (!strAcceleration.isNull())
    1493             {
    1494                 ++iRowCount;
    1495                 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIDetails", "Acceleration", "details (display)"),
    1496                                                          empReport(strAcceleration, strAccelerationOld));
     1490            const QString str3DAccelerationStatus = comGraphics.GetAccelerate3DEnabled()
     1491                                                  ? QApplication::translate("UIDetails", "Enabled", "details (display/3D Acceleration)")
     1492                                                  : QString();
     1493            const QString str3DAccelerationStatusOld = comGraphicsOld.GetAccelerate3DEnabled()
     1494                                                     ? QApplication::translate("UIDetails", "Enabled", "details (display/3D Acceleration)")
     1495                                                     : QString();
     1496            if (!str3DAccelerationStatus.isNull())
     1497            {
     1498                ++iRowCount;
     1499                strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIDetails", "3D Acceleration", "details (display)"),
     1500                                                         empReport(str3DAccelerationStatus, str3DAccelerationStatusOld));
    14971501            }
    14981502
     
    18741878    /* Return report: */
    18751879    return dReport;
    1876 }
    1877 
    1878 /* static */
    1879 QString UISnapshotDetailsWidget::displayAccelerationReport(CGraphicsAdapter comGraphics)
    1880 {
    1881     /* Prepare report: */
    1882     QStringList aReport;
    1883     /* 3D Acceleration? */
    1884     if (comGraphics.GetAccelerate3DEnabled())
    1885         aReport << QApplication::translate("UIDetails", "3D", "details (display)");
    1886     /* Compose and return report: */
    1887     return aReport.isEmpty() ? QString() : aReport.join(", ");
    18881880}
    18891881
  • trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.h

    r104358 r105259  
    184184    /** Acquires @a comMachine scale-factor report. */
    185185    static double scaleFactorReport(CMachine comMachine);
    186     /** Acquires @a comMachine display acceleration report. */
    187     static QString displayAccelerationReport(CGraphicsAdapter comGraphics);
    188186    /** Acquires @a comMachine VRDE server report. */
    189187    static QStringList vrdeServerReport(CMachine comMachine);
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