Changeset 105242 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 9, 2024 3:09:33 PM (10 months ago)
- svn:sync-xref-src-repo-rev:
- 163888
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r105241 r105242 1361 1361 /* Append adapter data: */ 1362 1362 strInfo += e_strTableRow1 1363 .arg(QApplication::translate("UIIndicator sPool", "Adapter %1 (%2)", "Network tooltip")1363 .arg(QApplication::translate("UIIndicatorNetwork", "Adapter %1 (%2)") 1364 1364 .arg(uSlot + 1).arg(gpConverter->toString(comAdapter.GetAttachmentType()))); 1365 1365 if (!strGuestIp.isEmpty()) 1366 1366 strInfo += e_strTableRow3 1367 .arg(QApplication::translate("UIIndicator sPool", "IP", "Network tooltip"), strGuestIp);1367 .arg(QApplication::translate("UIIndicatorNetwork", "IP"), strGuestIp); 1368 1368 strInfo += e_strTableRow3 1369 .arg(QApplication::translate("UIIndicator sPool", "Cable", "Network tooltip"))1369 .arg(QApplication::translate("UIIndicatorNetwork", "Cable")) 1370 1370 .arg(fCableConnected ? 1371 QApplication::translate("UIIndicator sPool", "Connected", "cable (Network tooltip)") :1372 QApplication::translate("UIIndicator sPool", "Disconnected", "cable (Network tooltip)"));1371 QApplication::translate("UIIndicatorNetwork", "Connected", "cable") : 1372 QApplication::translate("UIIndicatorNetwork", "Disconnected", "cable")); 1373 1373 } 1374 1374 } … … 1393 1393 if (strInfo.isNull()) 1394 1394 strInfo = e_strTableRow1 1395 .arg(QApplication::translate("UIIndicator sPool", "No USB devices attached", "USB tooltip"));1395 .arg(QApplication::translate("UIIndicatorUSB", "No USB devices attached")); 1396 1396 } 1397 1397 } … … 1421 1421 if (!fFoldersPresent) 1422 1422 strInfo = e_strTableRow1 1423 .arg(QApplication::translate("UIIndicator sPool", "No shared folders", "Shared folders tooltip"));1423 .arg(QApplication::translate("UIIndicatorSharedFolders", "No shared folders")); 1424 1424 } 1425 1425 … … 1434 1434 const QString strVRAMSize = QApplication::translate("UICommon", "<nobr>%1 MB</nobr>", "details report").arg(uVRAMSize); 1435 1435 strInfo += e_strTableRow2 1436 .arg(QApplication::translate("UIIndicator sPool", "Video memory", "Display tooltip"), strVRAMSize);1436 .arg(QApplication::translate("UIIndicatorDisplay", "Video memory"), strVRAMSize); 1437 1437 1438 1438 /* Monitor Count: */ … … 1442 1442 const QString strMonitorCount = QString::number(uMonitorCount); 1443 1443 strInfo += e_strTableRow2 1444 .arg(QApplication::translate("UIIndicator sPool", "Screens", "Display tooltip"), strMonitorCount);1444 .arg(QApplication::translate("UIIndicatorDisplay", "Screens"), strMonitorCount); 1445 1445 } 1446 1446 … … 1453 1453 : QApplication::translate("UICommon", "Disabled", "details report (3D Acceleration)"); 1454 1454 strInfo += e_strTableRow2 1455 .arg(QApplication::translate("UIIndicator sPool", "3D acceleration", "Display tooltip"), strAcceleration3D);1455 .arg(QApplication::translate("UIIndicatorDisplay", "3D acceleration"), strAcceleration3D); 1456 1456 } 1457 1457 } … … 1473 1473 QString strToolTip; 1474 1474 if (fVideoEnabled && fAudioEnabled) 1475 strToolTip = QApplication::translate("UIIndicator sPool", "Video/audio recording file", "Recording tooltip");1475 strToolTip = QApplication::translate("UIIndicatorRecording", "Video/audio recording file"); 1476 1476 else if (fAudioEnabled) 1477 strToolTip = QApplication::translate("UIIndicator sPool", "Audio recording file", "Recording tooltip");1477 strToolTip = QApplication::translate("UIIndicatorRecording", "Audio recording file"); 1478 1478 else if (fVideoEnabled) 1479 strToolTip = QApplication::translate("UIIndicator sPool", "Video recording file", "Recording tooltip");1479 strToolTip = QApplication::translate("UIIndicatorRecording", "Video recording file"); 1480 1480 strInfo += e_strTableRow2 1481 1481 .arg(strToolTip) … … 1486 1486 { 1487 1487 strInfo += e_strTableRow1 1488 .arg(QApplication::translate("UIIndicator sPool", "Recording disabled", "Recording tooltip"));1488 .arg(QApplication::translate("UIIndicatorRecording", "Recording disabled")); 1489 1489 } 1490 1490 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r105233 r105242 27 27 28 28 /* Qt includes: */ 29 #include <QApplication>30 29 #include <QAccessibleWidget> 31 30 #include <QHBoxLayout> … … 1040 1039 virtual void updateAppearance() RT_OVERRIDE 1041 1040 { 1042 const QString strToolTip = QApplication::translate("UIIndicatorsPool", 1043 "Indicates whether the host mouse pointer is " 1044 "captured by the guest OS:%1", "Mouse tooltip"); 1041 const QString strToolTip = tr("Indicates whether the host mouse pointer is " 1042 "captured by the guest OS:%1", "Mouse tooltip"); 1045 1043 QString strFullData; 1046 1044 strFullData += s_strTableRow3 1047 1045 .arg(QString("<img src=:/mouse_disabled_16px.png/>")) 1048 .arg( QApplication::translate("UIIndicatorsPool","pointer is not captured", "Mouse tooltip"));1046 .arg(tr("pointer is not captured", "Mouse tooltip")); 1049 1047 strFullData += s_strTableRow3 1050 1048 .arg(QString("<img src=:/mouse_16px.png/>")) 1051 .arg( QApplication::translate("UIIndicatorsPool","pointer is captured", "Mouse tooltip"));1049 .arg(tr("pointer is captured", "Mouse tooltip")); 1052 1050 strFullData += s_strTableRow3 1053 1051 .arg(QString("<img src=:/mouse_seamless_16px.png/>")) 1054 .arg( QApplication::translate("UIIndicatorsPool","mouse integration (MI) is On", "Mouse tooltip"));1052 .arg(tr("mouse integration (MI) is On", "Mouse tooltip")); 1055 1053 strFullData += s_strTableRow3 1056 1054 .arg(QString("<img src=:/mouse_can_seamless_16px.png/>")) 1057 .arg( QApplication::translate("UIIndicatorsPool","MI is Off, pointer is captured", "Mouse tooltip"));1055 .arg(tr("MI is Off, pointer is captured", "Mouse tooltip")); 1058 1056 strFullData += s_strTableRow3 1059 1057 .arg(QString("<img src=:/mouse_can_seamless_uncaptured_16px.png/>")) 1060 .arg( QApplication::translate("UIIndicatorsPool","MI is Off, pointer is not captured", "Mouse tooltip"));1058 .arg(tr("MI is Off, pointer is not captured", "Mouse tooltip")); 1061 1059 strFullData = s_strTable.arg(strFullData); 1062 strFullData += QApplication::translate("UIIndicatorsPool", 1063 "Note that the mouse integration feature requires Guest " 1064 "Additions to be installed in the guest OS.", "Mouse tooltip"); 1060 strFullData += tr("Note that the mouse integration feature requires Guest " 1061 "Additions to be installed in the guest OS.", "Mouse tooltip"); 1065 1062 1066 1063 /* Update tool-tip: */ … … 1122 1119 virtual void updateAppearance() RT_OVERRIDE 1123 1120 { 1124 const QString strToolTip = QApplication::translate("UIIndicatorsPool", 1125 "Indicates whether the host keyboard is " 1126 "captured by the guest OS:%1", "Keyboard tooltip"); 1121 const QString strToolTip = tr("Indicates whether the host keyboard is " 1122 "captured by the guest OS:%1", "Keyboard tooltip"); 1127 1123 QString strFullData; 1128 1124 strFullData += s_strTableRow3 1129 1125 .arg(QString("<img src=:/hostkey_16px.png/>")) 1130 .arg( QApplication::translate("UIIndicatorsPool","keyboard is not captured", "Keyboard tooltip"));1126 .arg(tr("keyboard is not captured", "Keyboard tooltip")); 1131 1127 strFullData += s_strTableRow3 1132 1128 .arg(QString("<img src=:/hostkey_captured_16px.png/>")) 1133 .arg( QApplication::translate("UIIndicatorsPool","keyboard is captured", "Keyboard tooltip"));1129 .arg(tr("keyboard is captured", "Keyboard tooltip")); 1134 1130 strFullData = s_strTable.arg(strFullData); 1135 1131 … … 1176 1172 void sltRetranslateUI() 1177 1173 { 1178 setToolTip(QApplication::translate("UIMachineWindowNormal", 1179 "Shows the currently assigned Host key.<br>" 1180 "This key, when pressed alone, toggles the keyboard and mouse " 1181 "capture state. It can also be used in combination with other keys " 1182 "to quickly perform actions from the main menu.")); 1174 setToolTip(tr("Shows the currently assigned Host key.<br>" 1175 "This key, when pressed alone, toggles the keyboard and mouse " 1176 "capture state. It can also be used in combination with other keys " 1177 "to quickly perform actions from the main menu.")); 1183 1178 } 1184 1179 };
Note:
See TracChangeset
for help on using the changeset viewer.