Changeset 96487 in vbox
- Timestamp:
- Aug 25, 2022 11:37:31 AM (2 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp
r96407 r96487 211 211 /* Determine VM states: */ 212 212 m_enmMachineState = KCloudMachineState_Stopped; 213 m_strMachineStateName = gpConverter->toString(m_enmMachineState);214 213 switch (m_enmFakeCloudItemState) 215 214 { … … 250 249 /* Determine VM states: */ 251 250 m_enmMachineState = m_fAccessible ? m_comCloudMachine.GetState() : KCloudMachineState_Stopped; 252 m_strMachineStateName = gpConverter->toString(m_enmMachineState);253 251 m_machineStateIcon = gpConverter->toIcon(m_enmMachineState); 254 252 … … 351 349 if (itemType() == UIVirtualMachineItemType_CloudFake) 352 350 { 353 /* Update machine/state name: */351 /* Update fake machine state name: */ 354 352 switch (m_enmFakeCloudItemState) 355 353 { … … 369 367 else 370 368 { 369 /* Update real machine state name: */ 370 m_strMachineStateName = gpConverter->toString(m_enmMachineState); 371 371 372 /* Update tool-tip: */ 372 373 m_strToolTipText = QString("<nobr><b>%1</b></nobr><br>" … … 379 380 else 380 381 { 382 /* We have our own translation for Null states: */ 383 m_strMachineStateName = tr("Inaccessible", "VM"); 384 381 385 /* Update tool-tip: */ 382 386 m_strToolTipText = tr("<nobr><b>%1</b></nobr><br>" … … 384 388 "Inaccessible VM tooltip (name)") 385 389 .arg(m_strName); 386 387 /* We have our own translation for Null states: */388 m_strMachineStateName = tr("Inaccessible", "VM");389 390 } 390 391 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp
r96407 r96487 94 94 /* Determine VM states: */ 95 95 m_enmMachineState = m_comMachine.GetState(); 96 m_strMachineStateName = gpConverter->toString(m_enmMachineState);97 96 m_machineStateIcon = gpConverter->toIcon(m_enmMachineState); 98 97 m_enmSessionState = m_comMachine.GetSessionState(); 99 m_strSessionStateName = gpConverter->toString(m_enmSessionState);100 98 101 99 /* Determine configuration access level: */ … … 281 279 if (m_fAccessible) 282 280 { 281 /* Just use the usual translation for valid states: */ 282 m_strMachineStateName = gpConverter->toString(m_enmMachineState); 283 m_strSessionStateName = gpConverter->toString(m_enmSessionState); 284 283 285 /* Update tool-tip: */ 284 286 m_strToolTipText = QString("<b>%1</b>").arg(m_strName); … … 297 299 else 298 300 { 301 /* We have our own translation for Null states: */ 302 m_strMachineStateName = tr("Inaccessible"); 303 m_strSessionStateName = tr("Inaccessible"); 304 299 305 /* Update tool-tip: */ 300 306 m_strToolTipText = tr("<nobr><b>%1</b><br></nobr>" … … 303 309 .arg(m_strSettingsFile) 304 310 .arg(strDateTime); 305 306 /* We have our own translation for Null states: */ 307 m_strMachineStateName = tr("Inaccessible"); 308 m_strSessionStateName = tr("Inaccessible"); 309 } 310 } 311 } 312 }
Note:
See TracChangeset
for help on using the changeset viewer.