Changeset 105259 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 10, 2024 2:00:00 PM (6 months ago)
- 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 500 500 } 501 501 502 /* Acceleration: */502 /* 3D acceleration: */ 503 503 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration) 504 504 { 505 QStringList acceleration;506 /* 3D acceleration: */507 505 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)")); 512 508 } 513 509 … … 1461 1457 fAcceleration3D = comGraphics.GetAccelerate3DEnabled(); 1462 1458 if (fAcceleration3D) 1463 {1464 const QString strAcceleration3D = fAcceleration3D1465 ? QApplication::translate("UICommon", "Enabled", "details report (3D Acceleration)")1466 : QApplication::translate("UICommon", "Disabled", "details report (3D Acceleration)");1467 1459 strInfo += e_strTableRow2 1468 .arg(QApplication::translate("UI IndicatorDisplay", "3D acceleration"), strAcceleration3D);1469 }1460 .arg(QApplication::translate("UIDetails", "3D Acceleration", "details (display)"), 1461 QApplication::translate("UIDetails", "Enabled", "details (display/3D Acceleration)")); 1470 1462 } 1471 1463 -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp
r105258 r105259 1488 1488 1489 1489 /* 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)); 1497 1501 } 1498 1502 … … 1874 1878 /* Return report: */ 1875 1879 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(", ");1888 1880 } 1889 1881 -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.h
r104358 r105259 184 184 /** Acquires @a comMachine scale-factor report. */ 185 185 static double scaleFactorReport(CMachine comMachine); 186 /** Acquires @a comMachine display acceleration report. */187 static QString displayAccelerationReport(CGraphicsAdapter comGraphics);188 186 /** Acquires @a comMachine VRDE server report. */ 189 187 static QStringList vrdeServerReport(CMachine comMachine);
Note:
See TracChangeset
for help on using the changeset viewer.