Changeset 80520 in vbox
- Timestamp:
- Aug 30, 2019 6:30:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r80495 r80520 89 89 90 90 void runTimeAttributes(); 91 QString screenResolutions(); 92 91 93 void insertInfoLine(InfoLine enmInfoLine, const QString& strLabel, const QString &strInfo); 92 94 void computeMinimumWidth(); … … 99 101 QString m_strTableTitle; 100 102 QString m_strScreenResolutionLabel; 103 QString m_strMonitorTurnedOff; 101 104 QString m_strUptimeLabel; 102 105 QString m_strClipboardModeLabel; … … 106 109 QString m_strUnrestrictedExecutionLabel; 107 110 QString m_strParavirtualizationLabel; 111 QString m_strActive; 112 QString m_strInactive; 113 QString m_strNotAvailable; 108 114 QString m_strGuestAdditionsLabel; 109 115 QString m_strGuestOSTypeLabel; 110 116 QString m_strRemoteDesktopLabel; 117 QString m_strNotSet; 118 QString m_strNotDetected; 111 119 /** @} */ 112 120 … … 236 244 m_strTableTitle = QApplication::translate("UIVMInformationDialog", "Runtime Attributes"); 237 245 m_strScreenResolutionLabel = QApplication::translate("UIVMInformationDialog", "Screen Resolution"); 246 m_strMonitorTurnedOff = QApplication::translate("UIVMInformationDialog", "turned off"); 238 247 m_strUptimeLabel = QApplication::translate("UIVMInformationDialog", "VM Uptime"); 239 248 m_strClipboardModeLabel = QApplication::translate("UIVMInformationDialog", "Clipboard Mode"); … … 243 252 m_strUnrestrictedExecutionLabel = QApplication::translate("UIVMInformationDialog", "Unrestricted Execution"); 244 253 m_strParavirtualizationLabel = QApplication::translate("UIVMInformationDialog", "Paravirtualization Interface"); 254 m_strActive = QApplication::translate("UIVMInformationDialog", "Active"); 255 m_strInactive = QApplication::translate("UIVMInformationDialog", "Inactive"); 256 m_strNotAvailable = QApplication::translate("UIVMInformationDialog", "Not Available"); 245 257 m_strGuestAdditionsLabel = QApplication::translate("UIVMInformationDialog", "Guest Additions"); 246 258 m_strGuestOSTypeLabel = QApplication::translate("UIVMInformationDialog", "Guest OS Type"); 247 259 m_strRemoteDesktopLabel = QApplication::translate("UIVMInformationDialog", "Remote Desktop Server Port"); 260 m_strNotSet = QApplication::translate("UIVMInformationDialog", "not set"); 261 m_strNotDetected = QApplication::translate("UIVMInformationDialog", "Not Detected"); 248 262 } 249 263 … … 266 280 setItem(iRow, 1, new QTableWidgetItem(strInfo, enmInfoLine)); 267 281 setRowHeight(iRow, 2 * iMargin + m_iFontHeight); 282 } 283 284 QString UIRuntimeInfoWidget::screenResolutions() 285 { 286 QString strResolutions; 287 return strResolutions; 268 288 } 269 289 … … 289 309 { 290 310 strResolution += QString(" "); 291 strResolution += QString(QApplication::translate("UIVMInformationDialog", "turned off"));311 strResolution += m_strMonitorTurnedOff; 292 312 } 293 313 aResolutions[iScreen] = strResolution; … … 315 335 /* Determine virtualization attributes: */ 316 336 QString strVirtualization = debugger.GetHWVirtExEnabled() ? 317 QApplication::translate("UIVMInformationDialog", "Active") : 318 QApplication::translate("UIVMInformationDialog", "Inactive"); 337 m_strActive : m_strInactive; 319 338 320 339 QString strExecutionEngine; … … 334 353 RT_FALL_THRU(); 335 354 case KVMExecutionEngine_NotSet: 336 strExecutionEngine = QApplication::translate("UIVMInformationDialog", "not set");355 strExecutionEngine = m_strNotSet; 337 356 break; 338 357 } 339 358 QString strNestedPaging = debugger.GetHWVirtExNestedPagingEnabled() ? 340 QApplication::translate("UIVMInformationDialog", "Active"): 341 QApplication::translate("UIVMInformationDialog", "Inactive"); 359 m_strActive : m_strInactive; 342 360 343 361 QString strUnrestrictedExecution = debugger.GetHWVirtExUXEnabled() ? 344 QApplication::translate("UIVMInformationDialog", "Active"): 345 QApplication::translate("UIVMInformationDialog", "Inactive"); 346 347 QString strParavirtProvider = gpConverter->toString(m_machine.GetEffectiveParavirtProvider()); 362 m_strActive : m_strInactive; 363 364 QString strParavirtProvider = gpConverter->toString(m_machine.GetEffectiveParavirtProvider()); 348 365 349 366 /* Guest information: */ … … 351 368 QString strGAVersion = guest.GetAdditionsVersion(); 352 369 if (strGAVersion.isEmpty()) 353 strGAVersion = tr("Not Detected", "guest additions");370 strGAVersion = m_strNotDetected; 354 371 else 355 372 { … … 360 377 QString strOSType = guest.GetOSTypeId(); 361 378 if (strOSType.isEmpty()) 362 strOSType = tr("Not Detected", "guest os type");379 strOSType = m_strNotDetected; 363 380 else 364 381 strOSType = uiCommon().vmGuestOSTypeDescription(strOSType); … … 367 384 int iVRDEPort = m_console.GetVRDEServerInfo().GetPort(); 368 385 QString strVRDEInfo = (iVRDEPort == 0 || iVRDEPort == -1)? 369 tr("Not Available", "details report (VRDE server port)") : 370 QString("%1").arg(iVRDEPort); 386 m_strNotAvailable : QString("%1").arg(iVRDEPort); 371 387 372 388 /* Searching for longest string: */ … … 539 555 { 540 556 int iFontSize = 24; 541 542 //const QString &strText = m_pMetric->name();543 557 foreach (const QString &strText, m_textList) 544 558 { 545 559 m_font.setPixelSize(iFontSize); 546 547 560 do{ 548 561 int iWidth = QFontMetrics(m_font).width(strText);
Note:
See TracChangeset
for help on using the changeset viewer.