儲存庫 vbox 的更動 30930
- 時間撮記:
- 2010-7-20 下午02:26:06 (14 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r30751 r30930 517 517 QStringList strPositionSettings = machine.GetExtraDataStringList(strPositionAddress); 518 518 519 bool ok = true, max = false;519 bool ok = !strPositionSettings.isEmpty(), max = false; 520 520 int x = 0, y = 0, w = 0, h = 0; 521 521 522 if (ok && strPositionSettings.size() > 0) 522 523 x = strPositionSettings[0].toInt(&ok); 524 else ok = false; 523 525 if (ok && strPositionSettings.size() > 1) 524 526 y = strPositionSettings[1].toInt(&ok); 527 else ok = false; 525 528 if (ok && strPositionSettings.size() > 2) 526 529 w = strPositionSettings[2].toInt(&ok); 530 else ok = false; 527 531 if (ok && strPositionSettings.size() > 3) 528 532 h = strPositionSettings[3].toInt(&ok); 533 else ok = false; 529 534 if (ok && strPositionSettings.size() > 4) 530 535 max = strPositionSettings[4] == VBoxDefs::GUI_LastWindowState_Max; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r30848 r30930 217 217 QStringList strPositionSettings = machine.GetExtraDataStringList(strPositionAddress); 218 218 219 bool ok = true, max = false;219 bool ok = !strPositionSettings.isEmpty(), max = false; 220 220 int x = 0, y = 0, w = 0, h = 0; 221 221 222 if (ok && strPositionSettings.size() > 0) 222 223 x = strPositionSettings[0].toInt(&ok); 224 else ok = false; 223 225 if (ok && strPositionSettings.size() > 1) 224 226 y = strPositionSettings[1].toInt(&ok); 227 else ok = false; 225 228 if (ok && strPositionSettings.size() > 2) 226 229 w = strPositionSettings[2].toInt(&ok); 230 else ok = false; 227 231 if (ok && strPositionSettings.size() > 3) 228 232 h = strPositionSettings[3].toInt(&ok); 233 else ok = false; 229 234 if (ok && strPositionSettings.size() > 4) 230 235 max = strPositionSettings[4] == VBoxDefs::GUI_LastWindowState_Max;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器