儲存庫 vbox 的更動 12036
- 時間撮記:
- 2008-9-3 下午12:51:29 (16 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox4
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsHD.h
r12021 r12036 295 295 signals: 296 296 297 void signalToCloseEditor (QWidget *aEditor,298 QAbstractItemDelegate::EndEditHint aCloseHint);299 297 void hdChanged(); 300 298 -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsHD.cpp
r12021 r12036 500 500 SIGNAL (mediaRemoved (VBoxDefs::DiskType, const QUuid &)), 501 501 this, SLOT (onMediaRemoved (VBoxDefs::DiskType, const QUuid &))); 502 connect (this, SIGNAL (signalToCloseEditor (QWidget*, QAbstractItemDelegate::EndEditHint)),503 mTwAts, SLOT (closeEditor (QWidget*, QAbstractItemDelegate::EndEditHint)));504 502 505 503 /* Install global event filter */ … … 678 676 editor->tryToChooseUniqueVdi (vdis); 679 677 678 /* Move the focus to the other than attachment table location. 679 * This will close the temporary editor of this table to prevent 680 * influencing the media enumeration mechanism to model data. */ 681 mCbSATA->setFocus(); 682 qApp->processEvents(); 683 680 684 /* Ask the user for method to add new vdi */ 681 685 int result = mModel->rowCount() - 1 > editor->count() ? … … 684 688 if (result == QIMessageBox::Yes) 685 689 { 686 /* Close the editor to avoid it's infliction to data model */687 emit signalToCloseEditor (HDVdiEditor::activeEditor(),688 QAbstractItemDelegate::NoHint);689 690 690 /* Run new HD wizard */ 691 691 VBoxNewHDWzd dlg (this); … … 703 703 else if (result == QIMessageBox::No) 704 704 vdmClicked(); 705 706 /* Move the focus to the attachment table location again. */ 707 mTwAts->setFocus(); 705 708 } 706 709 } … … 741 744 Assert (mTwAts->currentIndex().isValid()); 742 745 743 /* Close the editor to avoid it's infliction to data model */ 744 emit signalToCloseEditor (HDVdiEditor::activeEditor(), 745 QAbstractItemDelegate::NoHint); 746 /* Move the focus to the other than attachment table location. 747 * This will close the temporary editor of this table to prevent 748 * influencing the media enumeration mechanism to model data. */ 749 mCbSATA->setFocus(); 750 qApp->processEvents(); 746 751 747 752 HDVdiValue oldVdi (mModel->data (mTwAts->currentIndex(), Qt::EditRole) … … 764 769 765 770 vboxGlobal().startEnumeratingMedia(); 771 772 /* Move the focus to the attachment table location again. */ 773 mTwAts->setFocus(); 766 774 } 767 775
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器